Created
February 11, 2011 03:06
-
-
Save dansteen/821857 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
!= form_for visit, :html => { :method => :delete, :loading_trigger => true, :loading_target => 'add_visit' } do |form| | |
%fieldset | |
%h3 | |
Delete Visit | |
%p | |
.form_field_error_messages | |
- errors = form.object.errors[:visit_date].join('; ') | |
- if ! errors.blank? | |
!= "Justification #{errors}. Please provide a reason for this modification." | |
!= label :comment, :comment, "Justification" | |
!= text_area :comment, :comment, :cols=>25, :rows=> 5 | |
%label | |
!= hidden_field :patient, :id | |
!= submit_tag 'Delete Visit' | |
%label | |
!= link_to 'Cancel', new_visit_path(:patient_id => patient.id), :method => :get, :remote => true, :loading_trigger => true, :loading_target => 'add_visit', :clear_noticeable => "visit_#{visit.id.to_s}" | |
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
<form method="post" loading_trigger="true" loading_target="add_visit" id="edit_visit_7" class="edit_visit" action="/visits/7" accept-charset="UTF-8"> | |
<div style="margin: 0pt; padding: 0pt; display: inline;"> | |
<input type="hidden" value="✓" name="utf8"> | |
<input type="hidden" value="delete" name="_method"> | |
<input type="hidden" value="lrToVe/VhOI3JC3lH19Cs+PN6xUt2glR+088nkAhEeo=" name="authenticity_token"> | |
</div> | |
<fieldset> | |
<h3> | |
Delete Visit | |
</h3> | |
<p> | |
</p><div class="form_field_error_messages"> | |
</div> | |
<label for="comment_comment">Justification</label> | |
<textarea rows="5" name="comment[comment]" id="comment_comment" cols="25"></textarea> | |
<label></label> | |
<input type="hidden" value="2" name="patient[id]" id="patient_id"> | |
<input type="submit" value="Delete Visit" name="commit"> | |
<label></label> | |
<a loading_trigger="true" loading_target="add_visit" data-remote="true" data-method="get" clear_noticeable="visit_7" href="/visits/new?patient_id=2">Cancel</a> | |
</fieldset> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment