|
33 | 33 | {% endif %} |
34 | 34 | {{ form.non_field_errors }} |
35 | 35 | <div class="my-3 form-floating"> |
| 36 | + <input class="form-control" id="id_title" maxlength="255" name="title" type="text" {% if not can_change %}disabled{% endif %} value="{{ form.title.value|default_if_none:"" }}" /> |
| 37 | + <label for="id_title" class="form-label">{% translate "Title" %}</label> |
36 | 38 | {% if form.title.errors %}{% for error in form.title.errors %} |
37 | 39 | <div class="alert alert-danger">{{ error|escape }}</div> |
38 | 40 | {% endfor %}{% endif %} |
39 | | - <input class="form-control" id="id_title" maxlength="255" name="title" type="text" {% if not can_change %}disabled{% endif %} value="{{ form.title.value|default_if_none:"" }}" /> |
40 | | - <label for="id_title" class="form-label">{% translate "Title" %}</label> |
41 | 41 | </div> |
42 | 42 | {% if form.connections|length > 1 and can_change %} |
43 | 43 | <div class="mb-3 form-floating"> |
|
46 | 46 | </div> |
47 | 47 | {% else %} |
48 | 48 | {# still need to submit the connection, just hide the UI element #} |
49 | | - <div class="hidden"> |
| 49 | + <div class="d-none"> |
50 | 50 | {{ form.connection }} |
51 | 51 | </div> |
| 52 | + <div>{{ form.connection.value }}</div> |
52 | 53 | {% endif %} |
53 | 54 | <div class="mb-3 form-floating"> |
54 | | - {% if form.description.errors %} |
55 | | - <div class="alert alert-danger">{{ form.description.errors }}</div> |
56 | | - {% endif %} |
57 | 55 | <textarea |
58 | 56 | id="id_description" class="form-control" cols="40" name="description" |
59 | 57 | {% if not can_change %}disabled{% endif %} rows="2" |
60 | 58 | >{{ form.description.value|default_if_none:"" }}</textarea> |
61 | 59 | <label for="id_description" class="form-label"> |
62 | 60 | {% translate "Description"%} |
63 | 61 | </label> |
| 62 | + {% if form.description.errors %} |
| 63 | + <div class="alert alert-danger">{{ form.description.errors }}</div> |
| 64 | + {% endif %} |
64 | 65 | </div> |
65 | 66 | {% if form.sql.errors %} |
66 | 67 | {% for error in form.sql.errors %} |
|
121 | 122 | {% translate "Format" %} |
122 | 123 | </button> |
123 | 124 | {% else %} |
124 | | - <button id="refresh_button" type="button" class="btn btn-default">{% translate "Refresh" %}</button> |
| 125 | + <button id="refresh_button" type="button" class="btn btn-outline-primary">{% translate "Refresh" %}</button> |
125 | 126 | {% export_buttons query %} |
126 | 127 | {% endif %} |
127 | 128 | </div> |
|
0 commit comments