diff --git a/app/Main.php b/app/Main.php index b3f9840fe49cc011e3e40e7a1656ad2bfc3c9737..2aa7bfa150ebfc9a40e5e83c0ac795d407b2b033 100644 --- a/app/Main.php +++ b/app/Main.php @@ -14,7 +14,6 @@ class Main extends Controller { function home($f3,$args) { // Select a random contact //TODO: use weight for random - $rand_id = rand(0, count($f3->get('contacts'))-1); $contacts = $f3->get('contacts'); $groups = Api::get_groups(); @@ -23,7 +22,6 @@ class Main extends Controller { $group_types = Api::get_group_types(); $f3->set('group_types', $group_types); - $f3->set('contact', $contacts[$rand_id]); $f3->set('block_content', 'home.html'); } @@ -108,7 +106,6 @@ class Main extends Controller { function contactslist($f3, $args) { $contacts = Api::get_contacts(); $f3->set('contacts', $contacts); - $f3->set('random', 2); $f3->set('block_content', 'contactslist.html'); } diff --git a/templates/base.html b/templates/base.html index dc81c09ca0dbecf9dab71c03d958bf393e7ff7bd..e965a7b239ffbbf9ec260689a39b8590d13ceccc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,4 +1,3 @@ - diff --git a/templates/contact.html b/templates/contact.html index a4cee32429f0fc766501b9bac4d4863a2148c437..750910d81f65c5ee71625d7a5b62a036745ecbd4 100644 --- a/templates/contact.html +++ b/templates/contact.html @@ -8,13 +8,19 @@ {{ @contact.first_name }} {{ @contact.last_name }} + +
    {{ @group_type.name }} -
    - - {{ @group.type }} - - {{ @group.name }} -
    + +
  • + + {{ @group.type }} + + {{ @group.name }} +
  • +
    +
    +
@@ -26,7 +32,7 @@

{{ _("If you want to call for free, you must provide us with your phone number (the PiPhone will call that number to initiate the communication).") }}

-
> +
@@ -39,7 +45,6 @@
diff --git a/templates/contactslist.html b/templates/contactslist.html index 7fec512df62f195e1306ed17fc3b4a3747282b32..ded9735134ebc6684f856f6c1391ebf998fe2ee0 100644 --- a/templates/contactslist.html +++ b/templates/contactslist.html @@ -1,18 +1,64 @@ -
-
-
-
-

{{ @campaign.title }}

-

{{ @campaign.description }}

+
+
    +
-
-
+ -
- -
+
  • + /static/img/placeholder.jpg{{ @contact.photo }}" class="circle"> + {{ @contact.last_name }} {{ @contact.full_name }} +
      + +
    • {{ @group.name }}
    • +
      +
    +
  • -
    + +
    -
    + diff --git a/templates/footer.html b/templates/footer.html index 79fbc42b8eee9dda439ded499d68c36c4549e74a..308b1d01b6ca1e7ab1b1fa896e6a8497bbcd1a37 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,7 +1,2 @@ - diff --git a/templates/header.html b/templates/header.html index b682a0283a9e34a8e7a836fdd200ba087267780d..9349c87f8adbc50b58a6873f5d6cc11e63ebd36c 100644 --- a/templates/header.html +++ b/templates/header.html @@ -9,10 +9,47 @@ - - +
    +
    +
    +
    +

    {{ @campaign.title}}

    +
    +
    +
    +

    + {{ @campaign.description }} +

    + {{ _("Act Now!") }} +
    +
    + + + +

    + {{ @organization.name }} +

    +

    + {{ @organization.description }} +

    + {{ _("Visit Us!") }} +
    +
    +
    +
    + +
    +
    diff --git a/templates/home.html b/templates/home.html index a3d0b950da1b1fbf71a435de009600d234606a6d..a88557a09aba09ff2a54ccd5b667bc8a08c37592 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,15 +1,57 @@ -
    -
    -
    -
    -

    {{ @campaign.title }}

    -

    {{ @campaign.description }}

    +
    +
    +
    +

    + {{ _("Call a representative and make your voice heard!") }} +

    + +
    +
    + +
    + + John Doe + + +
      {{ @group_type.name }} +
    • + Group +
    • +
    +
    +
    +
    + John Doe + close + +
    {{ _("Call for free") }}
    +
    + +

    {{ _("If you want to call for free, you must provide us with your phone number + (the PiPhone will call that number to initiate the communication).") }}

    +
    + + +
    +

    + {{ _('Starting with your country code, without the initial 0') }} +

    + +
    +
    + +
    +
    -
    -
    - -
    -
    -
    + +