mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
892 B
20 lines
892 B
<%= f.fields_for :value do |ff| %>
|
|
<%= ff.hidden_field :service, value: 'google' %>
|
|
<%= ff.fields_for :configs, configs do |fff| %>
|
|
<div class="grid md:grid-cols-2 gap-4">
|
|
<div class="form-control">
|
|
<%= fff.label :project, 'Project', class: 'label' %>
|
|
<%= fff.text_field :project, value: configs['project'], required: true, class: 'base-input' %>
|
|
</div>
|
|
<div class="form-control">
|
|
<%= fff.label :bucket, class: 'label' %>
|
|
<%= fff.text_field :bucket, value: value['service'] == 'google' ? configs['bucket'] : '', required: true , class: 'base-input' %>
|
|
</div>
|
|
</div>
|
|
<div class="form-control">
|
|
<%= fff.label :credentials, 'Credentials (JSON key content)', class: 'label' %>
|
|
<%= fff.text_area :credentials, value: configs['credentials'], required: true, class: 'base-input' %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|