reduce Amount of Caps Used in Multiple Dialogs

This commit is contained in:
Andrew Dolgov 2021-03-03 14:10:18 +03:00
parent 0730128a97
commit 75e659ba65
7 changed files with 11 additions and 11 deletions

View File

@ -165,7 +165,7 @@ class Pref_System extends Handler_Administrative {
$page = (int) ($_REQUEST["page"] ?? 0); $page = (int) ($_REQUEST["page"] ?? 0);
?> ?>
<div dojoType='dijit.layout.AccordionContainer' region='center'> <div dojoType='dijit.layout.AccordionContainer' region='center'>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?= __('Event Log') ?>'> <div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">report</i> <?= __('Event log') ?>'>
<?php <?php
if (Config::get(Config::LOG_DESTINATION) == "sql") { if (Config::get(Config::LOG_DESTINATION) == "sql") {
$this->_log_viewer($page, $severity); $this->_log_viewer($page, $severity);
@ -175,7 +175,7 @@ class Pref_System extends Handler_Administrative {
?> ?>
</div> </div>
<div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">mail</i> <?= __('Mail Configuration') ?>'> <div dojoType='dijit.layout.AccordionPane' style='padding : 0' title='<i class="material-icons">mail</i> <?= __('Mail configuration') ?>'>
<div dojoType="dijit.layout.ContentPane"> <div dojoType="dijit.layout.ContentPane">
<form dojoType="dijit.form.Form"> <form dojoType="dijit.form.Form">

View File

@ -16,7 +16,7 @@ const CommonDialogs = {
{op: "feeds", method: "subscribeToFeed"}, {op: "feeds", method: "subscribeToFeed"},
(reply) => { (reply) => {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
title: __("Subscribe to Feed"), title: __("Subscribe to feed"),
content: ` content: `
<form onsubmit='return false'> <form onsubmit='return false'>
@ -333,7 +333,7 @@ const CommonDialogs = {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
id: "feedEditDlg", id: "feedEditDlg",
title: __("Edit Feed"), title: __("Edit feed"),
feed_title: "", feed_title: "",
unsubscribe: function() { unsubscribe: function() {
if (confirm(__("Unsubscribe from %s?").replace("%s", this.feed_title))) { if (confirm(__("Unsubscribe from %s?").replace("%s", this.feed_title))) {
@ -473,7 +473,7 @@ const CommonDialogs = {
<section> <section>
<fieldset> <fieldset>
<input dojoType='dijit.form.ValidationTextBox' required='1' <input dojoType='dijit.form.ValidationTextBox' required='1'
placeHolder="${__("Feed Title")}" placeHolder="${__("Feed title")}"
style='font-size : 16px; width: 500px' name='title' value="${App.escapeHtml(feed.title)}"> style='font-size : 16px; width: 500px' name='title' value="${App.escapeHtml(feed.title)}">
</fieldset> </fieldset>

View File

@ -11,7 +11,7 @@ const Filters = {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
id: "filterEditDlg", id: "filterEditDlg",
title: filter_id ? __("Edit Filter") : __("Create Filter"), title: filter_id ? __("Edit filter") : __("Create new filter"),
ACTION_TAG: 4, ACTION_TAG: 4,
ACTION_SCORE: 6, ACTION_SCORE: 6,
ACTION_LABEL: 7, ACTION_LABEL: 7,

View File

@ -300,7 +300,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
try { try {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
title: __("Edit Multiple Feeds"), title: __("Edit multiple feeds"),
/*getChildByName: function (name) { /*getChildByName: function (name) {
let rv = null; let rv = null;
this.getChildren().forEach( this.getChildren().forEach(

View File

@ -56,7 +56,7 @@ const Helpers = {
Digest: { Digest: {
preview: function() { preview: function() {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
title: __("Digest Preview"), title: __("Digest preview"),
content: ` content: `
<div class='panel panel-scrollable digest-preview'> <div class='panel panel-scrollable digest-preview'>
<div class='text-center'>${__("Loading, please wait...")}</div> <div class='text-center'>${__("Loading, please wait...")}</div>
@ -124,7 +124,7 @@ const Helpers = {
edit: function() { edit: function() {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
id: "profileEditDlg", id: "profileEditDlg",
title: __("Settings Profiles"), title: __("Manage profiles"),
getSelectedProfiles: function () { getSelectedProfiles: function () {
return Tables.getSelected("pref-profiles-list"); return Tables.getSelected("pref-profiles-list");
}, },

View File

@ -68,7 +68,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
id: "labelEditDlg", id: "labelEditDlg",
title: __("Label Editor"), title: __("Edit label"),
style: "width: 650px", style: "width: 650px",
setLabelColor: function (id, fg, bg) { setLabelColor: function (id, fg, bg) {

View File

@ -36,7 +36,7 @@ const Users = {
const dialog = new fox.SingleUseDialog({ const dialog = new fox.SingleUseDialog({
id: "userEditDlg", id: "userEditDlg",
title: __("User Editor"), title: __("Edit user"),
execute: function () { execute: function () {
if (this.validate()) { if (this.validate()) {
Notify.progress("Saving data...", true); Notify.progress("Saving data...", true);