</div>
<div class="controls-row">
-<label>
+<label class="{{class = abstract_class(work)}}">
<%= locale
-en => 'Abstract ({{work.abstract.length || 0}} from max. 2000 characters with spaces)',
-hr => 'Sažetak ({{work.abstract.length || 0}} od maks. 2000 znakova s razmacima)'
+en => 'Abstract ({{abstract_length(work)}} from max. 2000 characters with spaces)',
+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-maxlength="2000" ng-model="work.abstract_valid" style="display: none" value="{{work.abstract}}">
</label>
-<textarea class="controls-row span11" ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
</div>
% end
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>
-% if ( $lang =~ m/-dev/ ) {
-<pre class="controls-row">
+<input style="float:right" title="validation errors" type=checkbox name=debug ng-click="debug = ! debug">
+<pre ng-show="debug">
{{RegistrationForm.$valid}}
{{RegistrationForm.$error}}
+</pre>
+% if ( $lang =~ m/-dev/ ) {
+<pre class="controls-row">
location={{$location.path()}}
location={{$location}}