Mobile Carrier Info
Imports: 10

This is a Planning Center Services Report that displays mobile carrier info.

Preview

Report Preview


<!--
QUICK CUSTOMIZATION:

{% assign print_picture = "false" %}
{% assign print_email = "false" %}
{% assign print_phone = "true" %}
{% assign print_phone_carrier = "true" %}
{% assign print_address = "false" %}
{% assign print_birthday = "false" %}
{% assign print_anniversary = "false" %}
{% assign print_notes = "false" %}
{% assign print_last_logged_in = "false" %}
{% assign print_created_at = "false" %}
{% assign print_positions = "false" %}
{% assign print_custom_properties = "false" %}

{% assign picture_width = "50" %}

SORTING:
{% assign sorted_people = people | sort: "first_name" %}
You can sort on:
	- last_name
	- first_name
	- updated_at
	- last_scheduled
	- created_at
	- logged_in_at
-->

<html>
    <head>
        <title>People</title>
        <style>
            * { font-family: Verdana, Arial; font-size: 10pt; }
            body { padding:0; margin:0; }

.people {
width: 100%;
border-collapse: collapse;
margin: 5px auto;
padding: 5px;
}

.people th {
background-color: #DDD;
font-size: 12pt;
text-align: left;
padding: 2px;
vertical-align: center;
border: solid 1px black;
}

.people td {
padding: 2px;
vertical-align: top;
border: solid 1px black;
} 

.address {
align: left;
border-collapse: collapse;
margin: 0;
padding: 0;
}

.address td {
border: none;
margin: 0;
padding: 0;
}

H1 {
font-size: 26pt;
padding: 0;
margin: 0;
}

H2 {
font-size: 16pt;
padding: 0;
margin: 0;
}

table .positions {
width: 100%;
border-collapse: collapse;
margin: 0px;
padding: 5px;
}

.positions td {
vertical-align: top;
border: solid 0px black;
border-bottom: dashed 1px silver;
} 

.service {

}
.position {

}

        </style>
    </head>
    <body>
        <h1>Mobile Carrier Info</h1>
        <h2>{{ organization.name }}</h2>
        </br>
	<table class="people">
              <tr>
                 {% if print_picture == "true"%}<th></th>{% endif %}
        	   <th>Name</th>
                 {% if print_email == "true"%}<th>Email</th>{% endif %}
                 {% if print_phone == "true"%}<th>Phone</th>{% endif %}
                 {% if print_phone_carrier == "true"%}<th>Phone Carrier</th>{% endif %}
                 {% if print_address == "true"%}<th>Address</th>{% endif %}
                 {% if print_birthday == "true"%}<th>Birthday</th>{% endif %}
                 {% if print_anniversary == "true"%}<th>Anniversary</th>{% endif %}
                 {% if print_notes == "true"%}<th>Notes</th>{% endif %}
                 {% if print_last_logged_in == "true"%}<th>Last Logged In</th>{% endif %}
                 {% if print_created_at == "true"%}<th>Date Created</th>{% endif %}
                 {% if print_positions == "true"%}<th>Positions</th>{% endif %}
                 {% if print_custom_properties == "true"%}<th>Custom Properties</th>{% endif %}

              </tr>
            {% for person in sorted_people %}
			<tr>
                 		{% if print_picture == "true"%}<td style="padding: 0; width:{{ picture_width }}px; height:{{ picture_width }}px;">{% if person.photo_thumbnail_url != "/assets/no_photo_thumbnail.gif" %}<img src="{{ person.photo_thumbnail_url }}" width={{ picture_width }} />{% endif %}</td>{% endif %}
	        	    	<td>{{ person.name }}</td>
                		{% if print_email == "true" %}<td>
					{% for email in person.emails %}
						<div>{{ email.address }}</div>
					{% endfor %} 
				</td>{% endif %}
                		{% if print_phone == "true" %}<td>
                			{% for phone_number in person.phone_numbers %}
              		{% if phone_number.type_name == "Mobile" %}
						<div>{{ phone_number.number }}</div>
              {% endif %}
					{% endfor %}
				</td>{% endif %}
                              		{% if print_phone_carrier == "true" %}<td>
                			{% for phone_number in person.phone_numbers %}
              		{% if phone_number.type_name == "Mobile" %}
						<div>{{ phone_number.carrier }}</div>
              {% endif %}
					{% endfor %}
				</td>{% endif %}
                		{% if print_address == "true" %}<td>
                			{% for address in person.addresses %}
						<div><table class="address"><tr><td>{{ address.type_name }}:  </td><td>{{ address.line_1 }}</br>{{ address.city }}, {{ address.state }} {{ address.zip }}</td></tr></table></div>
					{% endfor %}
				</td>{% endif %}
                		{% if print_birthday == "true" %}<td>
					<div>{{ person.birthdate | date: '%m/%d/%y' | downcase }}</div>
				</td>{% endif %}
                		{% if print_anniversary == "true" %}<td>
					<div>{{ person.anniversary | date: '%m/%d/%y' | downcase }}</div>
				</td>{% endif %}
                		{% if print_notes == "true" %}<td>
					<div>{{ person.notes }}</div>
				</td>{% endif %}
				{% if print_last_logged_in == "true" %}<td>
					<div>{{ person.logged_in_at }}</div>
				</td>{% endif %}
                {% if print_created_at == "true" %}<td>
					<div>{{ person.created_at }}</div>
				</td>{% endif %}
				{% if print_positions == "true" %}<td>
					<table class="positions">
					{% for position in person.positions %}
						<tr>
							<td class="service">{{ position.category.service_type.name }}</td>
							<td class="position">{{ position.name }} ({{ position.category.name }})</td>
						</tr>
					{% endfor %}
					</table>
				</td>{% endif %}
				{% if print_custom_properties == "true" %}<td>
					<table class="positions">
					{% for property in person.custom_properties %}
						<tr>
							<td class="service">{{ property.option.name }} ({{ property.field.name }})</td>
							
						</tr>
					{% endfor %}
					</table>
				</td>{% endif %}
			</tr>
	     {% endfor %}
        </table>
    </body>
</html>