diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-05-29 20:48:43 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-06-02 12:20:56 +0300 |
commit | 5bf3209198cf773e968c39af4c1663f1b26f61f5 (patch) | |
tree | 18088f6a92c0a70919283085a8230ab4eef073e9 /plugins/UsersManager/templates | |
parent | a624dad16d8f930fc80654c19d523f9130adaa84 (diff) |
#7960 Applied the new form design to the anonymous user settings
Diffstat (limited to 'plugins/UsersManager/templates')
-rw-r--r-- | plugins/UsersManager/templates/anonymousSettings.twig | 106 |
1 files changed, 63 insertions, 43 deletions
diff --git a/plugins/UsersManager/templates/anonymousSettings.twig b/plugins/UsersManager/templates/anonymousSettings.twig index 0b55961291..905236359b 100644 --- a/plugins/UsersManager/templates/anonymousSettings.twig +++ b/plugins/UsersManager/templates/anonymousSettings.twig @@ -2,55 +2,75 @@ {% block content %} {% if isSuperUser %} + <h2 piwik-enriched-headline>{{ 'UsersManager_MenuAnonymousUserSettings'|translate }}</h2> + {% if anonymousSites|length == 0 %} - <h3 class='form-description'><strong>{{ 'UsersManager_NoteNoAnonymousUserAccessSettingsWontBeUsed2'|translate }}</strong></h3> - <br/> + + <div class="alert alert-info"> + {{ 'UsersManager_NoteNoAnonymousUserAccessSettingsWontBeUsed2'|translate }} + </div> + {% else %} - <br/> + {{ ajax.errorDiv('ajaxErrorAnonymousUserSettings') }} {{ ajax.loadingDiv('ajaxLoadingAnonymousUserSettings') }} - <table id='anonymousUserSettingsTable' class="adminTable" style='width:850px;'> - <tr> - <td style="width:400px;">{{ 'UsersManager_WhenUsersAreNotLoggedInAndVisitPiwikTheyShouldAccess'|translate }}</td> - <td> - <fieldset> - <input id="anonymousDefaultReport-login" type="radio" value="Login" - name="anonymousDefaultReport"{% if anonymousDefaultReport==loginModule %} checked="checked"{% endif %} /> - <label for="anonymousDefaultReport-login">{{ 'UsersManager_TheLoginScreen'|translate }}</label><br/> - <input id="anonymousDefaultReport-multisites" {% if anonymousSites is empty %}disabled="disabled" {% endif %}type="radio" value="MultiSites" - name="anonymousDefaultReport"{% if anonymousDefaultReport=='MultiSites' %} checked="checked"{% endif %} /> - <label for="anonymousDefaultReport-multisites">{{ 'General_AllWebsitesDashboard'|translate }}</label><br/> - - <input id="anonymousDefaultReport-specific" {% if anonymousSites is empty %}disabled="disabled" {% endif %}type="radio" value="1" - name="anonymousDefaultReport"{% if anonymousDefaultReport>0 %} checked="checked"{% endif %} /> - <label for="anonymousDefaultReport-specific">{{ 'General_DashboardForASpecificWebsite'|translate }}</label> - {% if anonymousSites is not empty %} - <select id="anonymousDefaultReportWebsite"> - {% for info in anonymousSites %} - <option value="{{ info.idsite }}" {% if anonymousDefaultReport==info.idsite %} selected="selected"{% endif %}>{{ info.name|raw }}</option> - {% endfor %} - </select> - {% endif %} - </fieldset> - </td> - </tr> - <tr> - <td>{{ 'UsersManager_ForAnonymousUsersReportDateToLoadByDefault'|translate }}</td> - <td> - <fieldset> - {% for value,description in availableDefaultDates %} - <input id="anonymousDefaultDate-{{ loop.index }}" type="radio" {% if anonymousDefaultDate==value %}checked="checked" {% endif %}value="{{ value }}" - name="anonymousDefaultDate"/> - <label for="anonymousDefaultDate-{{ loop.index }}">{{ description }}</label> - <br/> - {% endfor %} - </fieldset> - </td> - </tr> - - </table> + + <div class="form-group"> + <label> + {{ 'UsersManager_WhenUsersAreNotLoggedInAndVisitPiwikTheyShouldAccess'|translate }} + </label> + <fieldset> + <label class="radio"> + <input id="anonymousDefaultReport-login" type="radio" value="Login" + name="anonymousDefaultReport" + {% if anonymousDefaultReport==loginModule %} checked="checked"{% endif %} /> + {{ 'UsersManager_TheLoginScreen'|translate }} + </label> + <label class="radio"> + <input id="anonymousDefaultReport-multisites" + {% if anonymousSites is empty %}disabled="disabled" {% endif %} + type="radio" value="MultiSites" name="anonymousDefaultReport" + {% if anonymousDefaultReport=='MultiSites' %} checked="checked"{% endif %} /> + {{ 'General_AllWebsitesDashboard'|translate }} + </label> + + <label class="radio"> + <input id="anonymousDefaultReport-specific" + {% if anonymousSites is empty %}disabled="disabled" {% endif %} + type="radio" value="1" name="anonymousDefaultReport" + {% if anonymousDefaultReport>0 %} checked="checked"{% endif %} /> + {{ 'General_DashboardForASpecificWebsite'|translate }} + + {% if anonymousSites is not empty %} + <select id="anonymousDefaultReportWebsite"> + {% for info in anonymousSites %} + <option value="{{ info.idsite }}" {% if anonymousDefaultReport==info.idsite %} selected="selected"{% endif %}> + {{ info.name|raw }} + </option> + {% endfor %} + </select> + {% endif %} + </label> + + </fieldset> + </div> + + <div class="form-group"> + <label>{{ 'UsersManager_ForAnonymousUsersReportDateToLoadByDefault'|translate }}</label> + <fieldset> + {% for value,description in availableDefaultDates %} + <label class="radio"> + <input type="radio" name="anonymousDefaultDate" + {% if anonymousDefaultDate==value %}checked="checked" {% endif %}value="{{ value }}"/> + {{ description }} + </label> + {% endfor %} + </fieldset> + </div> + <input type="submit" value="{{ 'General_Save'|translate }}" id="anonymousUserSettingsSubmit" class="submit"/> + {% endif %} {% endif %} {% endblock %}
\ No newline at end of file |