Commit bfbba50f authored by f's avatar f
Browse files

private/encrypted fields

parent e4845522
......@@ -106,6 +106,11 @@ module Sutty
type: :boolean,
desc: 'Field is required'
method_option :private,
aliases: '-p',
type: :boolean,
desc: 'Field is private (encrypted)'
method_option :inverse,
aliases: '-i',
type: :string,
......
......@@ -2,6 +2,9 @@
type: 'array'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'content'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'email'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'markdown'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'markdown_content'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'predefined_array'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'string'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'tel'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Teléfono'
......
......@@ -2,6 +2,9 @@
type: 'text'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
......@@ -2,6 +2,9 @@
type: 'url'
<% if required %>
required: true
<% end %>
<% if private %>
private: true
<% end %>
label:
es: 'Nombre'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment