projects
/
angular-drzb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save draft number
[angular-drzb]
/
app
/
partials
/
registration.html.ep
diff --git
a/app/partials/registration.html.ep
b/app/partials/registration.html.ep
index
33d47da
..
2800929
100644
(file)
--- a/
app/partials/registration.html.ep
+++ b/
app/partials/registration.html.ep
@@
-196,13
+196,14
@@
hr => 'Organizator simpozija' %>
</div>
<div class="controls-row">
</div>
<div class="controls-row">
-<label>
+<label
class="{{class = abstract_class(work)}}"
>
<%= locale
<%= 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>
</label>
-<textarea class="controls-row span11" ng-model="work.abstract" ng-maxlength="2000" rows="10" cols="80" ng-required="has_work" ></textarea>
</div>
% end
</div>
% end
@@
-223,6
+224,10
@@
hr=>'Prijava radova unutar simpozija {{work.title}}' %>
<h3><%= locale
en=>'{{$index + 1}}. symposium work',
hr=>'{{$index + 1}}. rad na simpoziju' %>
<h3><%= locale
en=>'{{$index + 1}}. symposium work',
hr=>'{{$index + 1}}. rad na simpoziju' %>
+<a class="btn btn-danger" href="" ng-click="symposium_work_remove($index)" ng-show="$index > 3"><%= locale
+en => 'delete this symposum work',
+hr => 'obriši rad na simpoziju' %>
+</a>
</h3>
<%= $WorkTemplate->(0) %>
</h3>
<%= $WorkTemplate->(0) %>
@@
-243,14
+248,21
@@
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.'
%>
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>
</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}}
{{RegistrationForm.$valid}}
{{RegistrationForm.$error}}
+</pre>
+% if ( $lang =~ m/-dev/ ) {
+<pre class="controls-row">
location={{$location.path()}}
location={{$location.path()}}
+location={{$location}}
+
+{{registration}}
</pre>
% }
</pre>
% }