mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
add the app url input on the first setup page
This commit is contained in:
1 parent
4977ee429c
commit
0ac30a5fc0
14 files changed
+93
-11
No files matched your search
@@ -44,6 +44,15 @@
|
||||
<%= f.button button_title(title: 'Update', disabled_with: 'Updating'), class: 'base-button' %>
|
||||
</div>
|
||||
<% end %>
|
||||
<h2 class="text-2xl font-bold mt-8 mb-4">App URL</h2>
|
||||
<%= form_for @encrypted_config, url: update_app_url_settings_profile_index_path, method: :patch, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
|
||||
<div class="form-control">
|
||||
<%= f.text_field :value, required: true, class: 'base-input' %>
|
||||
</div>
|
||||
<div class="form-control">
|
||||
<%= f.button button_title(title: 'Update', disabled_with: 'Updating'), class: 'base-button' %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="w-0 md:w-52"></div>
|
||||
</div>
|
||||
@@ -30,6 +30,15 @@
|
||||
<%= ff.password_field :password, required: true, placeholder: '************', class: 'base-input' %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= f.fields_for @encrypted_config do |ff| %>
|
||||
<div class="form-control">
|
||||
<% if @encrypted_config.value.blank? %>
|
||||
<set-origin-url data-input-id="_encrypted_config_value"></set-origin-url>
|
||||
<% end %>
|
||||
<%= ff.label :value, 'App URL', class: 'label' %>
|
||||
<%= ff.text_field :value, required: true, class: 'base-input' %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="form-control">
|
||||
<%= f.button button_title(title: 'Confirm', disabled_with: 'Processing'), class: 'base-button' %>
|
||||
|
||||
Reference in new issue
Block a user