Created
September 4, 2019 13:52
-
-
Save aziflaj/6010afaeefc627cb17127398104b9cba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="slot-creation-modal" class="modal"> | |
<%= form_with model: Slot.new, html: { class: 'new-slot' } do |f| %> | |
<div class="modal-content"> | |
<h4>Create a new slot</h4> | |
<div class="row"> | |
<div class="input-field col s12"> | |
<i class="material-icons prefix">date_range</i> | |
<%= f.text_field :scheduled_at_date, class: 'datepicker', placeholder: 'Scheduled date' %> | |
</div> | |
<div class="input-field col s12"> | |
<i class="material-icons prefix">access_time</i> | |
<%= f.text_field :scheduled_at_time, class: 'timepicker', placeholder: 'Scheduled time' %> | |
</div> | |
<div class="input-field col s12"> | |
<i class="material-icons prefix">event_note</i> | |
<%= f.text_area :notes, placeholder: 'Notes', rows: 10 %> | |
</div> | |
</div> | |
</div> | |
<div class="modal-footer"> | |
<%= f.submit 'Create slot', class: 'modal-close waves-effect waves-green btn-flat' %> | |
</div> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment