Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Konfigurationsseite: Gleiches Markup wie bei anderen Addons verwenden #62

Open
schorschy opened this issue Dec 13, 2019 · 1 comment
Open
Assignees

Comments

@schorschy
Copy link
Member

schorschy commented Dec 13, 2019

ich verwende custom-styles im backend und der minify-safe-button tanzt aus der reihe. andere addons haben das folgende markup für save-buttons:

<button id="rex-[addon-name]-save" type="submit" name="config-submit" class="btn btn-save rex-form-aligned" value="1">Einstellungen speichern</button>

minify benutzt <input type="submit">

man müsste zeile 69 in der config.php wie folgt ändern (ungetestet):

$n['field'] = '<button id="rex-minify-save" type="submit" name="config-submit" value="'.$this->i18n('config_action_save').'" class="btn btn-save rex-form-aligned" '.rex::getAccesskey($this->i18n('config_action_save'), 'save').'>';

oder man gibt dem input einfach die klassen btn btn-save mit.

kann mir jemand bei der gelegenheit erklären, was es damit auf sich hat?
value="'.$this->i18n('config_action_save').'"

@pschuchmann
Copy link
Member

Hey,

ich bin gerade am Basteln und bringe heute nochmal eine neue Version raus. Ich schaue da gleich mal rein.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants