Skip to content

Commit dd72be0

Browse files
committed
The big one. Templates reorganized.
1 parent 0fffe9e commit dd72be0

90 files changed

Lines changed: 169 additions & 171 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- Eliminate the `root` theme Sprinkle. Custom styling for the root user is now handled with some Twig logic in the `admin` Sprinkle (#726)
1010
- Rename bundle.config.json -> asset-bundles.json (#726)
1111
- Reorganize assets (#726)
12+
- Heavily reorganize templates (#726)
1213
- Factor out "system" classes from core Sprinkle
1314
- Refactor overall application lifecycle; move main lifecycle into UserFrosting\System\UserFrosting
1415
- SprinkleManager now better focused on a single responsibility

app/sprinkles/account/assets/userfrosting/js/pages/account-settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target page: account/settings
88
*/

app/sprinkles/account/assets/userfrosting/js/pages/forgot-password.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target page: account/forgot-password
88
*/

app/sprinkles/account/assets/userfrosting/js/pages/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target page: account/register
88
*/

app/sprinkles/account/assets/userfrosting/js/pages/resend-verification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target page: account/resend-verification
88
*/

app/sprinkles/account/assets/userfrosting/js/pages/set-or-reset-password.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target pages: account/set-password, account/reset-password
88
*/

app/sprinkles/account/assets/userfrosting/js/pages/sign-in.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
33
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
44
*
5-
* This script depends on validation rules specified in components/page.js.twig.
5+
* This script depends on validation rules specified in pages/partials/page.js.twig.
66
*
77
* Target page: account/sign-in
88
*/

app/sprinkles/account/locale/ar/messages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Modern Standard Arabic message token translations for the 'account' sprinkle
77
*
88
* @package UserFrosting
9-
* @link http://wwwuserfrostingcom/components/#i18n
9+
* @link http://www.userfrosting.com/components/#i18n
1010
* @author Alex Weissman and Abdullah Seba
1111
*
1212
*/

app/sprinkles/account/src/Controller/AccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function forgotPassword($request, $response, $args)
252252
*/
253253
public function getModalAccountTos($request, $response, $args)
254254
{
255-
return $this->ci->view->render($response, 'components/modals/tos.html.twig');
255+
return $this->ci->view->render($response, 'modals/tos.html.twig');
256256
}
257257

258258
/**

app/sprinkles/account/templates/components/forms/settings-account.html.twig renamed to app/sprinkles/account/templates/forms/settings-account.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h3 class="box-title"><i class="fa fa-gear fa-fw"></i> {{translate("ACCOUNT.SETTINGS")}}</h3>
44
</div>
55
<div class="box-body">
6-
{% include "components/csrf.html.twig" %}
6+
{% include "forms/csrf.html.twig" %}
77
<!-- Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 -->
88
<input type="text" style="display:none">
99
<input type="password" style="display:none">

0 commit comments

Comments
 (0)