Skip to content

Instantly share code, notes, and snippets.

@dwaligora
Created May 5, 2014 12:46
Show Gist options
  • Select an option

  • Save dwaligora/11535727 to your computer and use it in GitHub Desktop.

Select an option

Save dwaligora/11535727 to your computer and use it in GitHub Desktop.
reminder.edit.html
<div class="page page-edit">
<div class="page-title">
<h3>Reminders</h3>
</div>
<div id="wrapper" class="add-wrap">
<div class="add-new">
<div class="single-message">
<form name="reminderAddForm" data-ng-submit="add()">
<input data-ng-model="object.title" placeholder="Title of Reminder" name="title" />
<input data-ng-model="object.location" placeholder="Location of Reminder" name="location" />
<div data-redactor style="height: 200px" data-ng-model="object.description">Reminder Description</div>
<div class="editpage-selects" data-ng-if="!UserRepository.isStudent(loggedUser.roles) && !UserRepository.isParent(loggedUser.roles)">
<select data-ui-select2 data-ng-model="object.class"
data-ng-options="c.id as c.code for c in classes">
<option value="">-- choose class --</option>
</select>
<select data-ui-select2 data-ng-model="object.user"
data-ng-options="u.id as u.name for u in users">
<option value="">-- choose user --</option>
</select>
</div>
<quick-datepicker data-label-format="EEEE, MMMM d, yyyy h:mm a" data-ng-model="object.start_at" data-placeholder="Set Start At"></quick-datepicker>
<quick-datepicker data-label-format="EEEE, MMMM d, yyyy h:mm a" data-ng-model="object.end_at" data-placeholder="Set End At"></quick-datepicker>
<button type="submit" class="button green-bg">
<span data-ng-if="!object.id">Add new reminder</span>
<span data-ng-if="object.id">Update reminder</span>
</button>
</form>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment