2018-03-19 01:31:43 +00:00
<?php $this -> layout ( 'main' , [ 'title' => __ ( 'Streamer/DJ Accounts' ), 'manual' => true ]) ?>
2016-09-02 00:34:08 +00:00
< div class = "row" >
< div class = "col-md-8" >
< div class = "card" >
2018-10-11 07:04:09 +00:00
< div class = "card-body" >
< h2 class = "card-title" > <? = __ ( 'Streamer/DJ Accounts' ) ?> </ h2 >
< / div >
< div class = "card-actions" >
< a class = "btn btn-outline-primary" role = "button" href = " <? = $router -> fromHere ( 'stations:streamers:add' ) ?> " >
2019-01-01 01:07:18 +00:00
< i class = "material-icons" aria-hidden = "true" > add< / i >
2018-10-11 07:04:09 +00:00
<? = __ ( 'Add %s' , __ ( 'Streamer' )) ?>
2018-04-22 23:59:23 +00:00
< / a >
2016-09-02 00:34:08 +00:00
< / div >
< div class = "table-responsive" >
< table class = "table table-striped" >
< colgroup >
< col width = "25%" >
< col width = "15%" >
2018-04-22 23:59:50 +00:00
< col width = "20%" >
< col width = "40%" >
2016-09-02 00:34:08 +00:00
< / colgroup >
< thead >
< tr >
2018-03-19 01:31:43 +00:00
< th > <? = __ ( 'Actions' ) ?> </ th >
< th > <? = __ ( 'Username' ) ?> </ th >
2018-04-22 23:59:50 +00:00
< th > <? = __ ( 'Display Name' ) ?> </ th >
2018-03-19 01:31:43 +00:00
< th > <? = __ ( 'Notes' ) ?> </ th >
2016-09-02 00:34:08 +00:00
< / tr >
< / thead >
< tbody >
2016-09-17 22:48:40 +00:00
<?php foreach ( $streamers as $row ) : ?>
2018-08-21 23:42:49 +00:00
<?php /** @var App\Entity\StationStreamer $row */ ?>
2019-03-09 23:42:59 +00:00
< tr class = "align-middle <?php if ( ! $row -> getIsActive ()) : ?> text-muted <?php endif ; ?> " >
2016-09-02 00:34:08 +00:00
< td >
2018-08-21 23:42:49 +00:00
< a class = "btn btn-sm btn-primary" href = " <? = $router -> fromHere ( 'stations:streamers:edit' , [ 'id' => $row -> getId ()]) ?> " > <? = __ ( 'Edit' ) ?> </ a >
2018-12-12 18:23:09 +00:00
< a class = "btn btn-sm btn-danger" data-confirm-title = " <? = $this -> e ( __ ( 'Delete streamer "%s"?' , $row -> getStreamerUsername ())) ?> " href = " <? = $router -> fromHere ( 'stations:streamers:delete' , [ 'id' => $row -> getId (), 'csrf' => $csrf ]) ?> " > <? = __ ( 'Delete' ) ?> </ a >
2016-09-02 00:34:08 +00:00
< / td >
2017-08-17 18:28:48 +00:00
< td >< code > <? = $this -> e ( $row -> getStreamerUsername ()) ?> </ code ></ td >
2018-04-22 23:59:50 +00:00
< td > <? = $this -> e ( $row -> getDisplayName ()) ?> </ td >
< td > <? = nl2br ( $this -> e ( $row -> getComments ())) ?> </ td >
2016-09-02 00:34:08 +00:00
< / tr >
2016-09-17 22:48:40 +00:00
<?php endforeach ; ?>
2016-09-02 00:34:08 +00:00
< / tbody >
< / table >
< / div >
< / div >
< / div >
< div class = "col-md-4" >
< div class = "card" >
2018-10-11 07:04:09 +00:00
< div class = "card-body" >
< h2 class = "card-title" > <? = __ ( 'Connection Information' ) ?> </ h2 >
< h3 class = "card-subtitle" > <? = __ ( 'IceCast Clients' ) ?> </ h3 >
2017-04-23 01:48:19 +00:00
< dl >
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Server' ) ?> :</ dt >
2017-08-12 07:47:23 +00:00
< dd > <? = $this -> e ( $server_url ) ?> </ dd >
2016-09-02 00:34:08 +00:00
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Port' ) ?> :</ dt >
2017-08-12 07:47:23 +00:00
< dd > <? = ( int ) $stream_port ?> </ dd >
2016-09-02 00:34:08 +00:00
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Mount Name' ) ?> :</ dt >
2019-01-30 00:25:41 +00:00
< dd > <? = $this -> e ( $dj_mount_point ) ?> </ dd >
2017-04-23 01:48:19 +00:00
< / dl >
2016-09-02 00:34:08 +00:00
2018-10-11 07:04:09 +00:00
< h3 class = "card-subtitle mt-3" > <? = __ ( 'ShoutCast v1 Clients' ) ?> </ h3 >
2017-04-23 01:48:19 +00:00
< dl >
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Server' ) ?> :</ dt >
2017-08-12 07:47:23 +00:00
< dd > <? = $this -> e ( $server_url ) ?> </ dd >
2016-09-02 00:34:08 +00:00
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Port' ) ?> :</ dt >
2017-08-12 07:47:23 +00:00
< dd > <? = (( int ) $stream_port + 1 ) ?> </ dd >
2016-09-02 00:34:08 +00:00
2018-03-19 01:31:43 +00:00
< dt > <? = __ ( 'Password' ) ?> :</ dt >
2017-04-23 01:48:19 +00:00
< dd >
dj_username:dj_password< br >
2018-03-19 01:31:43 +00:00
< small > <? = __ ( '(DJ username and password separated by a colon)' ) ?> </ small >
2017-04-23 01:48:19 +00:00
< / dd >
< / dl >
2017-04-27 20:00:34 +00:00
2018-11-18 03:11:20 +00:00
< p > <? = sprintf ( __ ( 'Setup instructions for broadcasting software are available <a href="%s" target="_blank">on the AzuraCast Wiki</a>.' ), 'https://github.com/AzuraCast/azuracast.com/blob/master/StreamingSoftware.md' ) ?> </ p >
2016-09-02 00:34:08 +00:00
< / div >
< / div >
< / div >
< / div >