save draft number
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Jan 2013 16:35:30 +0000 (17:35 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Jan 2013 16:35:30 +0000 (17:35 +0100)
app/partials/registration.html.ep

index f65651e..2800929 100644 (file)
@@ -202,7 +202,7 @@ en => 'Abstract ({{abstract_length(work)}}  from max. 2000 characters with space
 hr => 'Sažetak ({{abstract_length(work)}}  od maks. 2000 znakova s razmacima)'
 %>
 <textarea class="controls-row span11 {{class}}" ng-model="work.abstract" ng-minlength="2" rows="10" cols="80" ng-required="has_work"></textarea>
-<input type=text ng-model="work.abstract" ng-maxlength="2000" style="display: none">
+<input type=text ng-maxlength="2000" ng-model="work.abstract_valid" style="display: none" value="{{work.abstract}}">
 </label>
 </div>
 
@@ -248,6 +248,7 @@ hr => 'Dodaj još jedan rad na simpoziju' %>
 en => 'Please fill all required fields correctly. Fields with red border call for your attention.',
 hr => 'Molimo ispunite sva obavezna polja označena crvenim okvirom.'
 %>
+<button class="controls-row btn btn-info" ng-click="update(registration)" ng-show="RegistrationForm.$dirty"><%= locale en=>'Save draft',hr=>'Spremi privremeno' %></button>
 </p>
 
 <input style="float:right" title="validation errors" type=checkbox name=debug ng-click="debug = ! debug">