From a9cd99042fb235fc40a54a3fcca7a4faa8f5b1d8 Mon Sep 17 00:00:00 2001 From: lumatijev Date: Mon, 3 Aug 2015 20:52:21 +0200 Subject: [PATCH 1/4] Redesigned for Semantic UI 2. --- lib/at_error.html | 8 ++--- lib/at_form.html | 73 ++++++++++++++++++++------------------ lib/at_form.js | 8 +++++ lib/at_input.html | 8 ++--- lib/at_input.js | 9 ++++- lib/at_message.html | 2 +- lib/at_pwd_form.html | 24 +++++++------ lib/at_result.html | 2 +- lib/at_semantic-ui.less | 21 +++++++---- lib/at_social.js | 12 +++---- lib/at_terms_link.html | 1 + lib/at_title.html | 2 +- lib/full_page_at_form.html | 4 +-- 13 files changed, 103 insertions(+), 71 deletions(-) diff --git a/lib/at_error.html b/lib/at_error.html index 5420d5b..7126040 100644 --- a/lib/at_error.html +++ b/lib/at_error.html @@ -1,18 +1,18 @@ diff --git a/lib/at_form.html b/lib/at_form.html index 6216dac..3d6b664 100644 --- a/lib/at_form.html +++ b/lib/at_form.html @@ -1,39 +1,44 @@ diff --git a/lib/at_form.js b/lib/at_form.js index f44f74c..04078d1 100644 --- a/lib/at_form.js +++ b/lib/at_form.js @@ -1,2 +1,10 @@ // Simply 'inherites' helpers from AccountsTemplates Template.atForm.helpers(AccountsTemplates.atFormHelpers); + +// Helper for checking if you should hide message div under atPwdForm +// if there is nothing to display in it +Template.atForm.helpers({ + any: function (a, b, c) { + return a || b || c ? true : false; + } +}); diff --git a/lib/at_input.html b/lib/at_input.html index ec5cd08..a6a6914 100644 --- a/lib/at_input.html +++ b/lib/at_input.html @@ -3,7 +3,7 @@