From e6759a980b3efe07c4a4c2e2769c2becc92df67d Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 6 Aug 2012 17:25:59 +0200 Subject: [PATCH] LDAP: layout settings form. Hope it is now a bit clearer and prettier. --- apps/user_ldap/css/settings.css | 10 ++++++++ apps/user_ldap/settings.php | 1 + apps/user_ldap/templates/settings.php | 33 +++++++++++++-------------- 3 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 apps/user_ldap/css/settings.css diff --git a/apps/user_ldap/css/settings.css b/apps/user_ldap/css/settings.css new file mode 100644 index 0000000000..30c5c175c9 --- /dev/null +++ b/apps/user_ldap/css/settings.css @@ -0,0 +1,10 @@ +#ldap fieldset p label { + width: 20%; + max-width: 200px; + display: inline-block; +} + +#ldap fieldset input { + width: 70%; + display: inline-block; +} \ No newline at end of file diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php index c3bf4e0d5e..39aa329626 100644 --- a/apps/user_ldap/settings.php +++ b/apps/user_ldap/settings.php @@ -23,6 +23,7 @@ $params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_agent_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_group_filter', 'ldap_display_name', 'ldap_group_display_name', 'ldap_tls', 'ldap_turn_off_cert_check', 'ldap_nocase', 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr', 'ldap_group_member_assoc_attribute', 'ldap_cache_ttl'); OCP\Util::addscript('user_ldap', 'settings'); +OCP\Util::addstyle('user_ldap', 'settings'); if ($_POST) { foreach($params as $param){ diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php index 0d922f1566..861c9ba605 100644 --- a/apps/user_ldap/templates/settings.php +++ b/apps/user_ldap/templates/settings.php @@ -5,29 +5,28 @@
  • Advanced
  • -

    -

    - - t('Leave both empty for anonymous bind for search, then bind with users credentials.');?>

    -

    t('use %%uid placeholder, e.g. uid=%%uid');?>

    -

    t('without any placeholder, e.g. "objectClass=person".');?>

    -

    t('without any placeholder, e.g. "objectClass=posixGroup".');?>

    +

    +

    +

    +

    +


    t('use %%uid placeholder, e.g. "uid=%%uid"');?>

    +


    t('without any placeholder, e.g. "objectClass=person".');?>

    +


    t('without any placeholder, e.g. "objectClass=posixGroup".');?>

    -

    >

    -

    >

    -

    > t('Not recommended, use for testing only.');?>

    -

    - t('Currently the display name field needs to be the same you matched %%uid against in the filter above, because ownCloud doesn\'t distinguish between user id and user name.');?>

    -

    -

    - bytes

    -

    -

    t('in seconds');?>

    +

    title="t('Do not use it for SSL connections, it will fail.');?>" />

    +

    >

    +

    >
    t('Not recommended, use for testing only.');?>

    +

    +

    +

    +

    +

    +

    t('Help');?>