Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Mar 16, 2023
2 parents 1b935bf + 866a47c commit 34a3521
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 824 deletions.
797 changes: 0 additions & 797 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.38
6.40
4 changes: 1 addition & 3 deletions app/Http/Controllers/Forms/EducatorAdmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'name',
'placeholder' => '',
'autocomplete' => 'name',
'textCount' => false,
'value' => old('name'),
'error' => (!empty($errors) && $errors->first('name')) ? $errors->first('name') : null,
Expand Down Expand Up @@ -123,7 +123,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'grades_taught',
'placeholder' => '',
'textCount' => false,
'value' => old('grades_taught'),
'error' => (!empty($errors) && $errors->first('grades_taught')) ? $errors->first('grades_taught') : null,
Expand All @@ -142,7 +141,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'subjects_taught',
'placeholder' => '',
'textCount' => false,
'value' => old('subjects_taught'),
'error' => (!empty($errors) && $errors->first('subjects_taught')) ? $errors->first('subjects_taught') : null,
Expand Down
5 changes: 3 additions & 2 deletions app/Http/Controllers/Forms/EmailSubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function index(Request $request)
'variation' => null,
'id' => 'email',
'placeholder' => 'your@email.com',
'autocomplete' => 'email',
'textCount' => false,
'value' => $this->getOld('email'),
'error' => (!empty($errors) && $errors->first('email')) ? $errors->first('email') : null,
Expand Down Expand Up @@ -155,7 +156,7 @@ public function index(Request $request)
'type' => 'input',
'variation' => null,
'id' => 'first_name',
'placeholder' => '',
'autocomplete' => 'given-name',
'textCount' => false,
'value' => $this->getOld('first_name'),
'error' => (!empty($errors) && $errors->first('first_name')) ? $errors->first('first_name') : null,
Expand All @@ -174,7 +175,7 @@ public function index(Request $request)
'type' => 'input',
'variation' => null,
'id' => 'last_name',
'placeholder' => '',
'autocomplete' => 'family-name',
'textCount' => false,
'value' => $this->getOld('last_name'),
'error' => (!empty($errors) && $errors->first('last_name')) ? $errors->first('last_name') : null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'name',
'placeholder' => '',
'autocomplete' => 'name',
'textCount' => false,
'value' => old('name'),
'error' => (!empty($errors) && $errors->first('name')) ? $errors->first('name') : null,
Expand All @@ -52,6 +52,7 @@ public function index()
'variation' => null,
'id' => 'email',
'placeholder' => 'your@email.com',
'autocomplete' => 'email',
'textCount' => false,
'value' => old('email'),
'error' => (!empty($errors) && $errors->first('email')) ? $errors->first('email') : null,
Expand All @@ -70,7 +71,7 @@ public function index()
'type' => 'tel',
'variation' => null,
'id' => 'phone_number',
'placeholder' => '',
'autocomplete' => 'tel',
'textCount' => false,
'value' => old('phone_number'),
'error' => (!empty($errors) && $errors->first('phone_number')) ? $errors->first('phone_number') : null,
Expand All @@ -90,7 +91,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'description',
'placeholder' => '',
'value' => old('description'),
'error' => (!empty($errors) && $errors->first('description')) ? $errors->first('description') : null,
'optional' => false,
Expand Down Expand Up @@ -160,7 +160,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'locations',
'placeholder' => '',
'value' => old('locations'),
'error' => (!empty($errors) && $errors->first('locations')) ? $errors->first('locations') : null,
'optional' => false,
Expand All @@ -178,7 +177,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'required_time',
'placeholder' => '',
'textCount' => false,
'value' => old('required_time'),
'error' => (!empty($errors) && $errors->first('required_time')) ? $errors->first('required_time') : null,
Expand All @@ -197,7 +195,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'crew_members',
'placeholder' => '',
'value' => old('crew_members'),
'error' => (!empty($errors) && $errors->first('crew_members')) ? $errors->first('crew_members') : null,
'optional' => false,
Expand All @@ -215,7 +212,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'equipment_list',
'placeholder' => '',
'value' => old('equipment_list'),
'error' => (!empty($errors) && $errors->first('equipment_list')) ? $errors->first('equipment_list') : null,
'optional' => false,
Expand Down
14 changes: 3 additions & 11 deletions app/Http/Controllers/Forms/RyersonClassVisitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'name',
'placeholder' => '',
'autocomplete' => 'name',
'textCount' => false,
'value' => old('name'),
'error' => (!empty($errors) && $errors->first('name')) ? $errors->first('name') : null,
Expand All @@ -54,6 +54,7 @@ public function index()
'variation' => null,
'id' => 'email',
'placeholder' => 'your@email.com',
'autocomplete' => 'email',
'textCount' => false,
'value' => old('email'),
'error' => (!empty($errors) && $errors->first('email')) ? $errors->first('email') : null,
Expand All @@ -72,7 +73,7 @@ public function index()
'type' => 'tel',
'variation' => null,
'id' => 'phone_number',
'placeholder' => '',
'autocomplete' => 'tel',
'textCount' => false,
'value' => old('phone_number'),
'error' => (!empty($errors) && $errors->first('phone_number')) ? $errors->first('phone_number') : null,
Expand Down Expand Up @@ -111,7 +112,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'non_saic_institution',
'placeholder' => '',
'textCount' => false,
'value' => old('non_saic_institution'),
'error' => (!empty($errors) && $errors->first('non_saic_institution')) ? $errors->first('non_saic_institution') : null,
Expand All @@ -130,7 +130,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'department',
'placeholder' => '',
'textCount' => false,
'value' => old('department'),
'error' => (!empty($errors) && $errors->first('department')) ? $errors->first('department') : null,
Expand All @@ -149,7 +148,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'course_title',
'placeholder' => '',
'textCount' => false,
'value' => old('course_title'),
'error' => (!empty($errors) && $errors->first('course_title')) ? $errors->first('course_title') : null,
Expand All @@ -168,7 +166,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'course_level',
'placeholder' => '',
'textCount' => false,
'value' => old('course_level'),
'error' => (!empty($errors) && $errors->first('course_level')) ? $errors->first('course_level') : null,
Expand Down Expand Up @@ -226,7 +223,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'multiple_sessions_description',
'placeholder' => '',
'value' => old('multiple_sessions_description'),
'error' => (!empty($errors) && $errors->first('multiple_sessions_description')) ? $errors->first('multiple_sessions_description') : null,
'optional' => false,
Expand Down Expand Up @@ -316,7 +312,6 @@ public function index()
'type' => 'input',
'variation' => null,
'id' => 'alt_times',
'placeholder' => '',
'textCount' => false,
'value' => old('alt_times'),
'error' => (!empty($errors) && $errors->first('alt_times')) ? $errors->first('alt_times') : null,
Expand All @@ -336,7 +331,6 @@ public function index()
'pattern' => '\d*',
'variation' => null,
'id' => 'no_of_students',
'placeholder' => '',
'textCount' => false,
'value' => old('no_of_students'),
'error' => (!empty($errors) && $errors->first('no_of_students')) ? $errors->first('no_of_students') : null,
Expand Down Expand Up @@ -393,7 +387,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'collections_related_assignment_description',
'placeholder' => '',
'value' => old('collections_related_assignment_description'),
'error' => (!empty($errors) && $errors->first('collections_related_assignment_description')) ? $errors->first('collections_related_assignment_description') : null,
'optional' => false,
Expand All @@ -411,7 +404,6 @@ public function index()
'type' => 'textarea',
'variation' => null,
'id' => 'collection_materials_requested_for_visit',
'placeholder' => '',
'value' => old('collection_materials_requested_for_visit'),
'error' => (!empty($errors) && $errors->first('collection_materials_requested_for_visit')) ? $errors->first('collection_materials_requested_for_visit') : null,
'optional' => false,
Expand Down
1 change: 1 addition & 0 deletions app/Models/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class Page extends AbstractModel
7 => 'Floor Icon',
8 => 'Virtual Queue',
9 => 'Proof of Vaccination',
10 => 'Dining'
];

public function scopeForType($query, $type)
Expand Down
10 changes: 10 additions & 0 deletions frontend/icons/dining.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions frontend/scss/setup/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ More variants maybe added later, so anything thats not a 16px square SVG needs a
<svg class="icon--closer_look">
<use xlink:href="#icon--closer_look"></use>
</svg>
<svg class="icon--dining">
<use xlink:href="#icon--dining"></use>
</svg>
<svg class="icon--download--24">
<use xlink:href="#icon--download--24"></use>
</svg>
Expand Down Expand Up @@ -361,6 +364,11 @@ The cloud front server caches icons, if you add a new icon, or edit an icon, you
height: 44px;
}

.icon--dining {
width: 200px;
height: 200px;
}

.icon--download--24 {
width: 24px;
height: 24px;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/atoms/_email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@if (isset($textCount) and $textCount)
<span class="input__io-container" data-behavior="textCount">
@endif
<input class="f-secondary" type="{{ $type ?? 'email'}}" value="{{ $value ?? '' }}" id="{{ $id ?? '' }}" name="{{ $name }}" placeholder="{{ $placeholder ?? 'your@email.com' }}" {{ $disabled ?? '' }} {{ $required ?? '' }}>
<input class="f-secondary" type="{{ $type ?? 'email'}}" value="{{ $value ?? '' }}" id="{{ $id ?? '' }}" name="{{ $name }}" placeholder="{{ $placeholder ?? 'your@email.com' }}" {{ $disabled ?? '' }} {{ $required ?? '' }} autocomplete="email">
@if (isset($textCount) and $textCount)
<output for="{{ $id ?? '' }}" class="f-secondary"></output></span>
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/atoms/_input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@if (isset($textCount) and $textCount)
<span class="input__io-container" data-behavior="textCount">
@endif
<input class="f-secondary" type="{{ $type ?? 'text'}}" value="{{ $value ?? '' }}" id="{{ $id ?? '' }}" name="{{ $name }}" placeholder="{{ $placeholder ?? '' }}" {{ $disabled ?? '' }} {{ (isset($pattern)) ? 'pattern=' .$pattern : '' }} {{ $required ?? '' }}>
<input class="f-secondary" type="{{ $type ?? 'text'}}" value="{{ $value ?? '' }}" id="{{ $id ?? '' }}" name="{{ $name }}" {!! (isset($placeholder)) ? 'placeholder="' .$placeholder . '"' : '' !!} {!! (isset($autocomplete)) ? 'autocomplete="' .$autocomplete .'"' : '' !!} {{ $disabled ?? '' }} {{ (isset($pattern)) ? 'pattern=' .$pattern : '' }} {{ $required ?? '' }}>
@if (isset($textCount) and $textCount)
<output for="{{ $id ?? '' }}" class="f-secondary"></output></span>
@endif
Expand Down
1 change: 1 addition & 0 deletions resources/views/components/blocks/_blocks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@
@slot('id', $block['id'] ?? 'i_'.$loop->iteration)
@slot('name', $block['id'] ?? 'i_'.$loop->iteration)
@slot('placeholder', $block['placeholder'] ?? null)
@slot('autocomplete', $block['autocomplete'] ?? null)
@slot('textCount', $block['textCount'] ?? false)
@slot('value', $block['value'] ?? null)
@slot('error', $block['error'] ?? null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="m-aside-newsletter__field">
<label for="email{{ $rand }}" class="f-secondary">Email address</label>
{{ csrf_field() }}
<input type="email" name="email" id="email{{ $rand }}" class="f-secondary" placeholder="{{ $placeholder ?? 'your@email.com' }}">
<input type="email" name="email" id="email{{ $rand }}" class="f-secondary" placeholder="{{ $placeholder ?? 'your@email.com' }}" autocomplete="email">
<button type="submit" class="{{ $btnFont ?? 'f-buttons' }} m-aside-newsletter__btn--submit" data-gtm-event-category="subscribe" data-gtm-event="email">Subscribe</button>
</span>

Expand Down

0 comments on commit 34a3521

Please sign in to comment.