| 1 |
<div class="wrap wp_bootstrap vimeography"> |
| 2 |
<h2 class="page-title">Manage Licenses</h2> |
| 3 |
|
| 4 |
{{#messages}} |
| 5 |
<div class="{{type}}"> |
| 6 |
<p><strong>{{heading}}</strong> {{message}}</p> |
| 7 |
</div> |
| 8 |
{{/messages}} |
| 9 |
|
| 10 |
<section class="vimeography-licenses"> |
| 11 |
<aside> |
| 12 |
<h2>Activate Your Products</h2> |
| 13 |
<p>Enter your Vimeography product's license key to receive free updates for your purchase.</p> |
| 14 |
|
| 15 |
<form id="activation-form" class="form-inline" style="margin: 0; padding: 10px 0;" method="post" action=""> |
| 16 |
<input type="text" name="vimeography-activation-key"> |
| 17 |
<input type="hidden" name="vimeography-action" value="activate_license" /> |
| 18 |
<input type="submit" form="activation-form" value="Activate Product"> |
| 19 |
{{{nonce}}} |
| 20 |
</form> |
| 21 |
</aside> |
| 22 |
|
| 23 |
<table class="widefat"> |
| 24 |
<thead> |
| 25 |
<tr> |
| 26 |
<th>Your Products</th> |
| 27 |
<th>License Key</th> |
| 28 |
<th>Status</th> |
| 29 |
<th>Expires</th> |
| 30 |
<th>Action</th> |
| 31 |
</tr> |
| 32 |
</thead> |
| 33 |
<tfoot> |
| 34 |
<tr> |
| 35 |
<th>Your Products</th> |
| 36 |
<th>License Key</th> |
| 37 |
<th>Status</th> |
| 38 |
<th>Expires</th> |
| 39 |
<th>Action</th> |
| 40 |
</tr> |
| 41 |
</tfoot> |
| 42 |
<tbody> |
| 43 |
{{#activation_keys}} |
| 44 |
<form method="post" action=""> |
| 45 |
<input type="hidden" name="vimeography-action" value="deactivate_license" /> |
| 46 |
<input type="hidden" name="vimeography-activation-key" value="{{activation_key}}" /> |
| 47 |
<tr> |
| 48 |
<td>{{product_name}}</td> |
| 49 |
<td>{{activation_key}}</td> |
| 50 |
<td>{{status}}</td> |
| 51 |
<td>{{expires}}</td> |
| 52 |
<td><input class="vimeography-remove-activation-key" type="submit" value="× Remove Key" /></td> |
| 53 |
</tr> |
| 54 |
</form> |
| 55 |
{{/activation_keys}} |
| 56 |
</tbody> |
| 57 |
</table> |
| 58 |
</section> |
| 59 |
</div> |
| 60 |
|
| 61 |
<style> |
| 62 |
.vimeography { |
| 63 |
margin: 20px auto; |
| 64 |
} |
| 65 |
|
| 66 |
.vimeography h1, |
| 67 |
.vimeography h2, |
| 68 |
.vimeography h3, |
| 69 |
.vimeography h4, |
| 70 |
.vimeography h5, |
| 71 |
.vimeography h6 { |
| 72 |
font-family: 'Open Sans', sans-serif; |
| 73 |
font-weight: 300; |
| 74 |
} |
| 75 |
|
| 76 |
.vimeography-licenses aside { |
| 77 |
width: 100%; |
| 78 |
} |
| 79 |
|
| 80 |
.vimeography-licenses aside input[type="text"] { |
| 81 |
height: 36px; |
| 82 |
width: 260px; |
| 83 |
font-size: 18px; |
| 84 |
line-height: 1.2em; |
| 85 |
padding: 5px; |
| 86 |
} |
| 87 |
|
| 88 |
.vimeography-licenses aside input[type="submit"] { |
| 89 |
height: 36px; |
| 90 |
font-size: 14px; |
| 91 |
line-height: 1.2em; |
| 92 |
padding: 5px 20px; |
| 93 |
margin: 0; |
| 94 |
border: 0; |
| 95 |
border-radius: 2px; |
| 96 |
box-shadow: none; |
| 97 |
background-color: #2ecc71; |
| 98 |
color: #fafafa; |
| 99 |
} |
| 100 |
|
| 101 |
.vimeography-licenses table input[type="submit"] { |
| 102 |
color: #fafafa; |
| 103 |
font-size: 13px; |
| 104 |
position: relative; |
| 105 |
box-shadow: 0px 2px 0px #C23022; |
| 106 |
top: -2px; |
| 107 |
border: 0; |
| 108 |
border-radius: 2px; |
| 109 |
background: #e74c3c; |
| 110 |
display: block; |
| 111 |
} |
| 112 |
|
| 113 |
.vimeography-licenses table input[type="submit"]:hover { |
| 114 |
background-color: #e94c3c; |
| 115 |
} |
| 116 |
|
| 117 |
@media screen and (min-width: 1100px) { |
| 118 |
|
| 119 |
.vimeography-licenses aside { |
| 120 |
float: left; |
| 121 |
width: 30%; |
| 122 |
padding: 0 35px 0 20px; |
| 123 |
box-sizing: border-box; |
| 124 |
} |
| 125 |
|
| 126 |
.vimeography-licenses aside input[type="text"] { |
| 127 |
width: 100%; |
| 128 |
} |
| 129 |
|
| 130 |
.vimeography-licenses aside input[type="submit"] { |
| 131 |
margin: 15px 0 0 0; |
| 132 |
} |
| 133 |
|
| 134 |
.vimeography-licenses table { |
| 135 |
width: 68%; |
| 136 |
margin: 0 1%; |
| 137 |
float: left; |
| 138 |
clear: none; |
| 139 |
} |
| 140 |
|
| 141 |
} |
| 142 |
|
| 143 |
</style> |