mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-02 22:11:48 +01:00
get login, mobile and notes features passing
This commit is contained in:
parent
7c935652fb
commit
005723cb4f
52 changed files with 167 additions and 196 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<%= render :partial => "notes/note_details", :object => note %>
|
||||
</div>
|
||||
|
||||
<div id="<%= dom_id(note, 'edit') %>" class="note-edit-form" style="display:none;">
|
||||
<div id="<%= dom_id(note, 'edit') %>" class="note-edit-form" style="display:none">
|
||||
<%= render :partial => "notes/note_edit_form", :object => note %>
|
||||
</div>
|
||||
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
<% note = mobile_notes -%>
|
||||
<div class="mobile_note">
|
||||
<%= sanitize(textilize_without_paragraph(note.body)) %>
|
||||
</div>
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
<%
|
||||
submit_text ||= t('common.update')
|
||||
note = note_edit_form
|
||||
|
||||
-%><%=
|
||||
form_for(note, :html => {
|
||||
:id => dom_id(note, 'edit_form'),
|
||||
:class => "inline-form edit-note-form"}) do |f|
|
||||
-%>
|
||||
-%>
|
||||
|
||||
<div id="error_status"><%= get_list_of_error_messages_for(note) %></div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<% note = mobile_notes_summary -%>
|
||||
<% note = notes_summary -%>
|
||||
<div class="note"><%= link_to( truncated_note(note), note_path(note, :format => 'm')) %></div>
|
||||
<% note = nil -%>
|
||||
|
|
@ -1 +0,0 @@
|
|||
<%= render :partial => 'mobile_notes', :object => @note %>
|
||||
1
app/views/notes/show.m.erb
Normal file
1
app/views/notes/show.m.erb
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%= render :partial => @note %>
|
||||
|
|
@ -17,7 +17,7 @@ function replace_note_form_with_updated_note() {
|
|||
}
|
||||
|
||||
function html_for_error_messages() {
|
||||
return "<%= escape_javascript(error_messages_for('note')) %>";
|
||||
return "<%= escape_javascript(get_list_of_error_messages_for(@note)) %>";
|
||||
}
|
||||
|
||||
function html_for_updated_note_form(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue