mirror of
https://github.com/we-promise/sure.git
synced 2026-05-11 14:45:01 +00:00
Sure uses Tailwind v4 with the design system tokens but several views still carried Bootstrap-style class names that don't render anything because no Bootstrap stylesheet is loaded. They're effectively dead markup. Replacements: - text-muted, text-muted-foreground -> text-subdued - bg-light -> bg-surface - font-italic -> italic - text-uppercase -> uppercase - font-weight-bold -> font-bold Touched files: - app/views/doorkeeper/applications/_form.html.erb - app/views/doorkeeper/applications/show.html.erb - app/views/pages/privacy.html.erb - app/views/pages/terms.html.erb - app/views/pages/redis_configuration_error.html.erb - app/views/settings/providers/_mercury_panel.html.erb Also tightening application.css: - The .hw-combobox__label rule used raw text-gray-500 / text-gray-400 via @apply. Now uses the text-secondary / text-subdued tokens so the combobox label responds to the theme. - Custom scrollbar thumbs in .windows and .scrollbar used hardcoded #d6d6d6 / #a6a6a6 hex values. Now reference var(--color-gray-300) / var(--color-gray-400). Slight color shift (the hex values were close to but not identical to those tokens), so this needs a quick visual check. And reports/print.html.erb had four <span style="color: #666"> elements on the metric cards. Replaced with class="text-secondary" merged into the existing tufte-metric-card-change class, so print uses the same secondary-text color the rest of the app uses.
60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
<%= form_for application, url: doorkeeper_submit_path(application), as: :doorkeeper_application, html: { role: "form" } do |f| %>
|
|
<% if application.errors.any? %>
|
|
<div class="alert alert-danger" data-alert><p><%= t("doorkeeper.applications.form.error") %></p></div>
|
|
<% end %>
|
|
|
|
<div class="form-group row">
|
|
<%= f.label :name, class: "col-sm-2 col-form-label font-bold" %>
|
|
<div class="col-sm-10">
|
|
<%= f.text_field :name, class: "form-control #{ 'is-invalid' if application.errors[:name].present? }", required: true %>
|
|
<%= doorkeeper_errors_for application, :name %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<%= f.label :redirect_uri, class: "col-sm-2 col-form-label font-bold" %>
|
|
<div class="col-sm-10">
|
|
<%= f.text_area :redirect_uri, class: "form-control #{ 'is-invalid' if application.errors[:redirect_uri].present? }" %>
|
|
<%= doorkeeper_errors_for application, :redirect_uri %>
|
|
<span class="form-text text-secondary">
|
|
<%= t("doorkeeper.applications.help.redirect_uri") %>
|
|
</span>
|
|
|
|
<% if Doorkeeper.configuration.allow_blank_redirect_uri?(application) %>
|
|
<span class="form-text text-secondary">
|
|
<%= t("doorkeeper.applications.help.blank_redirect_uri") %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<%= f.label :confidential, class: "col-sm-2 form-check-label font-bold" %>
|
|
<div class="col-sm-10">
|
|
<%= f.check_box :confidential, class: "checkbox #{ 'is-invalid' if application.errors[:confidential].present? }" %>
|
|
<%= doorkeeper_errors_for application, :confidential %>
|
|
<span class="form-text text-secondary">
|
|
<%= t("doorkeeper.applications.help.confidential") %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<%= f.label :scopes, class: "col-sm-2 col-form-label font-bold" %>
|
|
<div class="col-sm-10">
|
|
<%= f.text_field :scopes, class: "form-control #{ 'has-error' if application.errors[:scopes].present? }" %>
|
|
<%= doorkeeper_errors_for application, :scopes %>
|
|
<span class="form-text text-secondary">
|
|
<%= t("doorkeeper.applications.help.scopes") %>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<%= f.submit t("doorkeeper.applications.buttons.submit"), class: "btn btn-primary" %>
|
|
<%= link_to t("doorkeeper.applications.buttons.cancel"), oauth_applications_path, class: "btn btn-secondary" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|