Commit f6eae023 authored by okhin's avatar okhin 🚴

Merge branch 'materialize' into 'master'

Materialize

See merge request !9
parents cdca56e8 d4dc898a
Pipeline #829 passed with stage
in 1 second
......@@ -11,7 +11,7 @@
<repeat group="{{ @contacts }}" value="{{ @contact }}">
<li class="collection-item avatar" data-json='{{ json_encode(@contact) }}'>
<img src="<check if="{{ @contact.photo == '' }}">/static/img/placeholder.jpg<false>{{ @contact.photo }}</false></check>" class="circle">
<span class="title">{{ @contact.last_name }} {{ @contact.full_name }}</span>
<span class="title">{{ @contact.full_name }}</span>
<ul>
<repeat group="{{ @contact.groups }}" value="{{ @group }}">
<li class="chip">{{ @group.name }}</li>
......@@ -27,7 +27,7 @@ $(document).ready(function() {
$('input.autocomplete').autocomplete({
data: {
<repeat group="{{ @contacts }}" value="{{ @contact }}">
"{{ @contact.first_name }} {{ @contact.last_name }}": <check if="{{ @contact.photo == '' }}">null<false>{{ @contact.photo }}</false></check>,
"{{ @contact.full_name }}": <check if="{{ @contact.photo == '' }}">null<false>"{{ @contact.photo }}"</false></check>,
</repeat>
},
limit: 20,
......
......@@ -6,8 +6,7 @@
<meta name="author" content="{{ @organization.name }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Materialize -->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="/static/css/materialize.min.css" media="screen,projection"/>
<!-- JS Materialize -->
<script src="/static/js/jquery-2.1.1.js"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment