Skip to content

Commit

Permalink
Set default contributor role_type to author
Browse files Browse the repository at this point in the history
  - Changed in both Organization and Person edit

Fixes #515
  • Loading branch information
lomky committed Apr 17, 2017
1 parent 0aef0bc commit 242a734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<div class='form-group'>
<%= label_for 'role_type', class => 'col-md-2 control-label' => begin %>Role<%= end %>
<div class='col-md-8'>
% param role_type => 'author' unless param 'role_type';
%= select_field 'role_type', db_labels('role_type'), class => 'form-control';
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions lib/Tuba/files/templates/person/update_rel_form.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<div class='form-group' style='margin-bottom:0px;'>
<%= label_for 'role_type', class => 'col-md-2 control-label' => begin %>Role<%= end %>
<div class='col-md-8'>
% param role_type => 'author' unless param 'role_type';
%= select_field 'role_type', db_labels('role_type'), class => 'form-control';
</div>
</div>
Expand Down

0 comments on commit 242a734

Please sign in to comment.