Skip to content

Commit

Permalink
Merge pull request #749 from Linesmerrill/fix/advanced-details-editable
Browse files Browse the repository at this point in the history
minor fix: make adv details editable
  • Loading branch information
Linesmerrill authored Jan 22, 2024
2 parents ed68a7f + 4879d55 commit 6264110
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions views/civ-dashboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@
<input id="delBirthday" name="birthday" type="date" max="2999-12-31" min="1900-01-01" class="form-control input-md" required>
</div>

<div class="form-group col-xs-1 col-md-1 margin-left-neg-15">
<div class="form-group col-xs-2 col-md-2 margin-left-neg-15">
<label class="control-label" for="ageView">Age:</label>
<input id="ageView" name="age" type="text" class="form-control input-md disabled-color" required readonly="readonly">
</div>
Expand Down Expand Up @@ -959,11 +959,15 @@
<input id="veteran-view" style="width: 2em;" type="checkbox" name="veteran" class="form-control">
</div>

<div class="col-md-12 text-align-center margin-bottom-1">
<input type="hidden" id="userID" name="userID" value="<%= user._id %>">
<input type="hidden" id="userBtnValue" value="">
<button type="submit" value="update" name="action" style="cursor: pointer" class="btn btn-info" onclick="updateUserBtnValue('update')">Update Civilian</button>
<button type="submit" value="delete" name="action" style="cursor: pointer" class="btn btn-danger" onclick="updateUserBtnValue('delete')">Delete Civilian</button>
<hr style="width: 88%;max-width: 100rem;">

<div class="row col-xs-3 col-md-12 margin-left-neg-15">
<div class="col-md-12 text-align-center margin-bottom-1">
<input type="hidden" id="userID" name="userID" value="<%= user._id %>">
<input type="hidden" id="userBtnValue" value="">
<button type="submit" value="update" name="action" style="cursor: pointer" class="btn btn-info" onclick="updateUserBtnValue('update')">Update Civilian</button>
<button type="submit" value="delete" name="action" style="cursor: pointer" class="btn btn-danger" onclick="updateUserBtnValue('delete')">Delete Civilian</button>
</div>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -1394,13 +1398,14 @@
<input id="additionalNotes-details" name="additionalNotes" type="text" placeholder="additional notes" class="form-control input-md">
</div>
</div>

<div class="col-md-12 text-align-center margin-bottom-2">
<input type="hidden" id="licenseID" name="licenseID">
<input type="hidden" id="licenseOwnerID" name="licenseOwnerID">
<input type="hidden" name="backLocation" value="/civ-dashboard">
<button type="submit" value="update" name="action" class="btn btn-info">Update License</button>
<button type="submit" value="delete" name="action" class="btn btn-danger">Delete License</button>
<div class="form-group">
<div class="col-md-12 text-align-center margin-bottom-2">
<input type="hidden" id="licenseID" name="licenseID">
<input type="hidden" id="licenseOwnerID" name="licenseOwnerID">
<input type="hidden" name="backLocation" value="/civ-dashboard">
<button type="submit" value="update" name="action" class="btn btn-info">Update License</button>
<button type="submit" value="delete" name="action" class="btn btn-danger">Delete License</button>
</div>
</div>
</fieldset>
</form>
Expand Down

0 comments on commit 6264110

Please sign in to comment.