1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-06 21:26:58 +02:00

google analytics dashboard init fix

This commit is contained in:
Oleg Gatseluk
2014-01-17 10:20:46 +02:00
parent ffc0bf62c2
commit 251acd4949

View File

@@ -35,45 +35,47 @@
<div class="well dashboard-well"> <div class="well dashboard-well">
<div class="row"><div class="col-md-12"><h4><?php echo __('Goggle Analytics', 'system'); ?></h4></div></div> <div class="row"><div class="col-md-12"><h4><?php echo __('Goggle Analytics', 'system'); ?></h4></div></div>
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-12">
<div id="gaAlerts" class="alert-warning"></div> <div class="row alert-warning"><div class="col-md-12" id="gaAlerts"></div></div>
<div id="gaLoading"> <div class="row" id="gaLoading">
spinner here ? <div class="col-md-12">Loading...</div>
</div> </div>
<div id="authOk" class="hide"> <div id="authOk" class="row hide">
<div class="row"> <div class="col-md-9">
<div class="col-md-8"> <div id="gaChart"></div>
<div id="gaChart"></div> </div>
</div> <div class="col-md-3">
<div class="col-md-4"> Today:<br/>
Today:<br/> Visits:<span id="gaVisits"></span><br/>
Visits:<span id="gaVisits"></span><br/> Visitors:<span id="gaVisitors"></span><br/>
Visitors:<span id="gaVisitors"></span><br/> Pageviews:<span id="gaPageviews"></span>
Pageviews:<span id="gaPageviews"></span> </div>
</div>
<div/>
</div> </div>
<div id="authFail" class="hide"> <div id="authFail" class="row hide">
<button class="btn btn-default" id="authorizeButton"><?php echo __('Authorize', 'system'); ?></button> <div class="col-md-12">
<button class="btn btn-default" id="authorizeButton"><?php echo __('Authorize', 'system'); ?></button>
</div>
</div> </div>
<div id="gaSettings" class="hide"> <div id="gaSettings" class="row hide">
<form method="POST"> <div class="col-md-12">
<?php echo Form::hidden('csrf', Security::token()); ?> <form method="POST">
<?php echo Form::hidden('csrf', Security::token()); ?>
<label><?php echo __('Client ID', 'system'); ?><input name="ga_client_id" value="<?php echo Option::get('ga_client_id'); ?>" placeholder="<?php echo __('Client ID', 'system'); ?>" /></label>
<label><?php echo __('Client ID', 'system'); ?><input name="ga_client_id" value="<?php echo Option::get('ga_client_id'); ?>" placeholder="<?php echo __('Client ID', 'system'); ?>" /></label>
<label><?php echo __('API key', 'system'); ?><input name="ga_api_key" value="<?php echo Option::get('ga_api_key'); ?>" placeholder="<?php echo __('API key', 'system'); ?>" /></label>
<label><?php echo __('API key', 'system'); ?><input name="ga_api_key" value="<?php echo Option::get('ga_api_key'); ?>" placeholder="<?php echo __('API key', 'system'); ?>" /></label>
<label><?php echo __('View ID', 'system'); ?><input name="ga_view_id" value="<?php echo Option::get('ga_view_id'); ?>" placeholder="<?php echo __('View ID', 'system'); ?>" /></label>
<label><?php echo __('View ID', 'system'); ?><input name="ga_view_id" value="<?php echo Option::get('ga_view_id'); ?>" placeholder="<?php echo __('View ID', 'system'); ?>" /></label>
<input type="hidden" name="ga_settings_update" value="1" />
<button type="submit" class="btn btn-default"><?php echo __('Save', 'system'); ?></button> <input type="hidden" name="ga_settings_update" value="1" />
</form> <button type="submit" class="btn btn-default"><?php echo __('Save', 'system'); ?></button>
</form>
</div>
</div> </div>
</div> </div>