CC-1724:Phone home statistics

Temp commit
This commit is contained in:
james 2011-06-09 09:56:32 -04:00
parent 6dc3d4d29a
commit 11b601308e
10 changed files with 446 additions and 6 deletions

View file

@ -6,6 +6,11 @@
<div class="collapsible-content" id="soundcloud-settings" style="display: none;">
<?php echo $this->element->getSubform('preferences_soundcloud') ?>
</div>
<h3 class="collapsible-header"><span class="arrow-icon"></span>Support Settings</h3>
<div class="collapsible-content" id="support-settings" style="display: none;">
<?php echo $this->element->getSubform('preferences_support') ?>
</div>
<div class="button-bar bottom" id="submit-element">
<?php echo $this->element->getElement('submit') ?>

View file

@ -0,0 +1,67 @@
<fieldset class="padded">
<dl class="zend_form">
<?php if($this->element->getView()->registered){?>
<div>Registered</div>
<?php }else{?>
<div>Please register your Airtime system by clicking Register button at the bottom.</div>
<?php }?>
<?php if($this->element->getView()->supportFeedback === '0'){?>
<div>Be more awesome by selecting "Support feedback" below. You will be helping Airtim improve!</div>
<?php }?>
<dt id="Phone-label" class="block-display">
<label class="optional" for="Phone"><?php echo $this->element->getElement('Phone')->getLabel() ?></label>
</dt>
<dd id="Phone-element" class="block-display">
<?php echo $this->element->getElement('Phone') ?>
<?php if($this->element->getElement('Phone')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Phone')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dt id="Email-label" class="block-display">
<label class="optional" for="Email"><?php echo $this->element->getElement('Email')->getLabel() ?></label>
</dt>
<dd id="Email-element" class="block-display">
<?php echo $this->element->getElement('Email') ?>
<?php if($this->element->getElement('Email')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Email')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dt id="StationWebSite-label" class="block-display">
<label class="optional" for="StationWebSite"><?php echo $this->element->getElement('StationWebSite')->getLabel() ?></label>
</dt>
<dd id="StationWebSite-element" class="block-display clearfix">
<?php echo $this->element->getElement('StationWebSite') ?>
<?php if($this->element->getElement('StationWebSite')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('StationWebSite')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dd id="SupportFeedback-element" class="block-display" style=" margin:6px 0 10px 0">
<label class="optional" for="SupportFeedback">
<?php echo $this->element->getElement('SupportFeedback') ?>
<strong><?php echo $this->element->getElement('SupportFeedback')->getLabel() ?></strong>
</label>
<?php if($this->element->getElement('SupportFeedback')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('SupportFeedback')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<div class="button-bar bottom" id="Register-element">
<?php echo $this->element->getElement('Register') ?>
</div>
</dl>
</fieldset>

View file

@ -0,0 +1,103 @@
<div class="dialogPopup register-dialog" title="Register Airtime">
<div class="info-text">
<p>Help Airtime improve by letting us know you are using it. This info
will be collected once per month and is anonymous unless you chose to
advertise your station on sourcefabric.org</p>
</div>
<form method="<?php echo $this->element->getMethod() ?>" action="<?php echo $this->element->getAction() ?>" enctype="application/x-www-form-urlencoded">
<dl class="zend_form">
<dd id="publicize-element">
<label class="optional" for="Publicise">
<?php echo $this->element->getElement('Publicise') ?>
<strong><?php echo $this->element->getElement('Publicise')->getLabel() ?></strong>
</label>
<?php if($this->element->getElement('Publicise')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Publicise')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
</dl>
<fieldset>
<dl class="zend_form">
<dt id="StationName-label" class="block-display">
<label class="required" for="StationName"><?php echo $this->element->getElement('StationName')->getLabel() ?></label>
</dt>
<dd id="StationName-element" class="block-display clearfix">
<?php echo $this->element->getElement('StationName') ?>
<?php if($this->element->getElement('StationName')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('StationName')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dt id="StationWebSite-label" class="block-display">
<label class="required" for="StationWebSite"><?php echo $this->element->getElement('StationWebSite')->getLabel() ?></label>
</dt>
<dd id="StationWebSite-element" class="block-display clearfix">
<?php echo $this->element->getElement('StationWebSite') ?>
<?php if($this->element->getElement('StationWebSite')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('StationWebSite')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dt id="Phone-label" class="block-display">
<label class="required" for="Phone"><?php echo $this->element->getElement('Phone')->getLabel() ?></label>
</dt>
<dd id="Phone-element" class="block-display">
<?php echo $this->element->getElement('Phone') ?>
<?php if($this->element->getElement('Phone')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Phone')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
<dt id="Email-label" class="block-display">
<label class="required" for="Email"><?php echo $this->element->getElement('Email')->getLabel() ?></label>
</dt>
<dd id="Email-element" class="block-display">
<?php echo $this->element->getElement('Email') ?>
<?php if($this->element->getElement('Email')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Email')->getMessages() as $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</dd>
</dl>
</fieldset>
</form>
<h3 class="collapsible-header">
<span class="arrow-icon"></span>Show me what I am sending
</h3>
<div class="collapsible-content" id="show_what_sending" style="display: block;">
<fieldset class="display_field">
<dl>
<?php echo $this->element->getElement('SendInfo') ?>
<dt>Airtime version:</dt>
<dd>1.9.0</dd>
<dt>Unique ID:</dt>
<dd>AT19236520FR00673</dd>
<dt>Station name:</dt>
<dd>BBC Radio 1</dd>
</dl>
</fieldset>
</div>
</div>