summaryrefslogtreecommitdiff
path: root/views/partials
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-28 22:40:33 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-05-26 16:05:32 +0100
commit28be7ca850f41352a1e4e43f0c7035bdeeff6e83 (patch)
tree3d8bef1bec6dd3600c8ffb318c03b221ccb504b8 /views/partials
parent53288fa3df3f828e99eaba679d436e65def2deb4 (diff)
New frontend styles, instance description functionality
Diffstat (limited to 'views/partials')
-rw-r--r--views/partials/editeventgroupmodal.handlebars8
-rw-r--r--views/partials/editeventmodal.handlebars8
-rwxr-xr-xviews/partials/eventForm.handlebars4
-rw-r--r--views/partials/importeventform.handlebars4
-rw-r--r--views/partials/instanceRules.handlebars11
-rwxr-xr-xviews/partials/sidebar.handlebars2
6 files changed, 24 insertions, 13 deletions
diff --git a/views/partials/editeventgroupmodal.handlebars b/views/partials/editeventgroupmodal.handlebars
index 41e7f00..046d15e 100644
--- a/views/partials/editeventgroupmodal.handlebars
+++ b/views/partials/editeventgroupmodal.handlebars
@@ -16,20 +16,20 @@
<div class="card border-danger mb-3">
<div class="card-header text-danger">Delete this event group</div>
<div class="card-body text-danger">
- <button type="button" id="deleteEvent" class="btn btn-danger" data-toggle="modal" data-target="#deleteModal"><i class="fas fa-trash"></i> Delete event group</button>
+ <button type="button" id="deleteEvent" class="button button--danger" data-toggle="modal" data-target="#deleteModal"><i class="fas fa-trash"></i> Delete event group</button>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+ <button type="button" class="button button--secondary" data-dismiss="modal">Close</button>
<button
type="submit"
- class="btn btn-primary"
+ class="button button--primary"
@click="submitForm"
x-bind:disabled="submitting"
- x-bind:class="submitting ? 'btn--loading' : ''"
+ x-bind:class="submitting ? 'button--loading' : ''"
x-text="submitting ? 'Saving...' : 'Save'"
></button>
</div>
diff --git a/views/partials/editeventmodal.handlebars b/views/partials/editeventmodal.handlebars
index 528dc1e..986da9c 100644
--- a/views/partials/editeventmodal.handlebars
+++ b/views/partials/editeventmodal.handlebars
@@ -21,7 +21,7 @@
<div class="card border-danger mb-3">
<div class="card-header text-danger">Delete this event</div>
<div class="card-body text-danger">
- <button type="button" id="deleteEvent" class="btn btn-danger" data-toggle="modal"
+ <button type="button" id="deleteEvent" class="button button--danger" data-toggle="modal"
data-target="#deleteModal" data-event-id="{{eventData.id}}"><i class="fas fa-trash"></i>
Delete</button>
</div>
@@ -30,13 +30,13 @@
</form>
</div>
<div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
+ <button type="button" class="button button--secondary" data-dismiss="modal">Close</button>
<button
type="submit"
- class="btn btn-primary"
+ class="button button--primary"
@click="submitForm"
x-bind:disabled="submitting"
- x-bind:class="submitting ? 'btn--loading' : ''"
+ x-bind:class="submitting ? 'button--loading' : ''"
x-text="submitting ? 'Saving...' : 'Save'"
></button>
</div>
diff --git a/views/partials/eventForm.handlebars b/views/partials/eventForm.handlebars
index 9227300..161f44b 100755
--- a/views/partials/eventForm.handlebars
+++ b/views/partials/eventForm.handlebars
@@ -52,7 +52,7 @@
<small class="form-text">Recommended dimensions (w x h): 920px by 300px.</small>
{{#if eventData.image}}
<div class="form-group my-2">
- <button type="button" class="btn btn-danger" id="deleteImage">Delete image</button>
+ <button type="button" class="button button--danger" id="deleteImage">Delete image</button>
</div>
{{/if}}
</div>
@@ -109,7 +109,7 @@
</template>
</select>
</div>
- <button type="button" class="btn btn-outline-secondary w-100 text-center" x-on:click="manualGroupInputVisible = !manualGroupInputVisible">
+ <button type="button" class="button button--outline-primary w-100 text-center" x-on:click="manualGroupInputVisible = !manualGroupInputVisible">
Enter group details manually <i class="fas" :class="{'fa-caret-down': !manualGroupInputVisible, 'fa-caret-up': manualGroupInputVisible}"></i>
</button>
<div
diff --git a/views/partials/importeventform.handlebars b/views/partials/importeventform.handlebars
index ac3c673..a8c0f0e 100644
--- a/views/partials/importeventform.handlebars
+++ b/views/partials/importeventform.handlebars
@@ -40,9 +40,9 @@
</div>
<button
type="submit"
- class="d-block mt-3 mx-auto btn btn-primary w-50 mb-4"
+ class="d-block mx-auto button button--primary w-50"
x-bind:disabled="submitting"
- x-bind:class="submitting ? 'btn--loading' : ''"
+ x-bind:class="submitting ? 'button--loading' : ''"
x-text="submitting ? 'Importing...' : 'Import'"
></button>
</form>
diff --git a/views/partials/instanceRules.handlebars b/views/partials/instanceRules.handlebars
new file mode 100644
index 0000000..c7fa9be
--- /dev/null
+++ b/views/partials/instanceRules.handlebars
@@ -0,0 +1,11 @@
+<div class="card mb-4">
+ <div class="card-header">
+ <h6 class="mb-1">Instance settings</h6>
+ </div>
+
+ <ul class="list-group list-group-flush">
+ {{#each instanceRules}}
+ <li class="list-group-item"><i class="{{this.icon}} fa-fw mr-2"></i> {{this.text}}</li>
+ {{/each}}
+ </ul>
+</div> \ No newline at end of file
diff --git a/views/partials/sidebar.handlebars b/views/partials/sidebar.handlebars
index 6aa13b3..43ff8c2 100755
--- a/views/partials/sidebar.handlebars
+++ b/views/partials/sidebar.handlebars
@@ -2,7 +2,7 @@
<h1><a href="/">gathio</a></h1>
<ul id="sidebar__nav">
- <li><a class="btn btn-success" href="/new"><i class="far fa-calendar-plus"></i> New</a></li>
+ <li><a class="button button--primary" href="/new"><i class="far fa-calendar-plus"></i> New</a></li>
{{#if showPublicEventList}}
<li><a href="/events">View events</a></li>
<li><a href="/about">About</a></li>