comment out work submission, leave just registration
[angular-drzb] / app / partials / registration.html.ep
index f65651e..5ddbf89 100644 (file)
@@ -16,6 +16,7 @@
        hr => 'Odaberite tip registracije'
 %></legend>
 
+% if (0) {
 <label class="radio"><input type="radio" ng-model="user.registration_type" value="lecture" ><%= locale
        en => 'Oral presentation',
        hr => 'Prijava usmenog izlaganja',
@@ -33,6 +34,8 @@
        hr => 'Prijava okruglog stola',
 %></label>
 <hr />
+% }
+
 <label class="radio"><input type="radio" ng-model="user.registration_type" value="participant" ><%= locale
     en => 'Registration',
        hr => 'Registracija'
@@ -202,7 +205,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" style="display: none">
 </label>
 </div>
 
@@ -212,14 +215,14 @@ hr => 'Sažetak ({{abstract_length(work)}}  od maks. 2000 znakova s razmacima)'
 
 </fieldset><!-- has_work -->
 
-<div ng-show="user.registration_type == 'symposium'">
+<div ng-show="user.registration_type == 'symposium'" id="symposium-works">
 
 <h2><%= locale
 en=>'Submission of works for the symposium {{work.title}}',
 hr=>'Prijava radova unutar simpozija {{work.title}}' %>
 </h2>
 
-<div ng-repeat="work in work.symposium_works" class="control-row">
+<div ng-repeat="work in work.symposium_works" class="control-row work">
 
 <h3><%= locale
 en=>'{{$index + 1}}. symposium work',
@@ -241,13 +244,14 @@ hr => 'Dodaj još jedan rad na simpoziju' %>
 
 </div><!-- user.registration_type == 'symposium' -->
 
-<button class="controls-row btn btn-primary" ng-click="update(registration)" ng-show="RegistrationForm.$valid"><%= locale en=>'Submit',hr=>'Pošalji' %></button>
+<button class="controls-row btn btn-primary" id="update-registration" ng-click="update(registration,'confirmation')" ng-show="RegistrationForm.$valid"><%= locale en=>'Submit',hr=>'Pošalji' %></button>
 
 <p class="well" style="color: red" ng-show="! RegistrationForm.$valid">
 <%= locale
 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" id="update-draft" ng-click="update(registration,'draft')" 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">