Skip to content

Commit 5be1a90

Browse files
committed
Hide fields in case of minimal registration
1 parent 88198ea commit 5be1a90

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/views/common/form_elements/_personal_data.html.erb

+9-7
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,27 @@
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
#%>
1919

20-
<%= form.input :given_name, :disabled => !owner.new_record? %>
20+
<% if Configuration.get('registration_minimal') != "true" %>
21+
<%= form.input :given_name, :disabled => !owner.new_record? %>
2122

22-
<%= form.input :surname, :disabled => !owner.new_record? %>
23+
<%= form.input :surname, :disabled => !owner.new_record? %>
2324

24-
<%= form.input :birth_date, :as => :date,
25+
<%= form.input :birth_date, :as => :date,
2526
:disabled => !owner.new_record?,
2627
:start_year => Date.today.year - 90,
2728
:end_year => Date.today.year - 14,
2829
:order => [:day, :month, :year],
2930
:prompt => true
3031
%>
3132

32-
<%= form.input :address %>
33+
<%= form.input :address %>
3334

34-
<%= form.input :zip %>
35+
<%= form.input :zip %>
3536

36-
<%= form.input :city %>
37+
<%= form.input :city %>
3738

38-
<%= form.input :state, :collection => countries, :prompt => false %>
39+
<%= form.input :state, :collection => countries, :prompt => false %>
40+
<% end %>
3941

4042
<%= form.input :email %>
4143

0 commit comments

Comments
 (0)