Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php $__env->startSection('styles'); ?>
    <?php echo HTML::style('css/bootstrap.css'); ?>

    <?php echo HTML::style('css/AdminLTE.css'); ?>

    <?php echo HTML::style('css/datepicker/datepicker3.css'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="img-titolo">
    <div><hr><h2>Admin</h2><hr></div>
    <img src="<?php echo URL::asset('image/riservata-bg.jpg'); ?>" alt="">
</div>

<div class="wrap admin">
    <?php echo $__env->make('admin.nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

    <section class="content">
    <div class="row">
        <div class="col-md-12">
            <!-- Custom Tabs -->
            <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                    <li class="active"><a href="javascript:void(0)" data-toggle="tab">Agenda modifica</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="user_create">

                        <div class="row margin">
                            <?php echo Form::open(['url'=>'/admin/agenda/update/'.$agenda->idagenda,'files'=>'true']); ?>

                            <div class="col-md-12">

                            <div class="form-group">
                                <label for="ordine">Ordine</label>
                                <input class="form-control number" type="text" name="ordine" id="ordine" value="<?php echo $agenda->ordine; ?>"/>
                            </div>

                            <div class="form-group">
                                <label for="titolo">Titolo</label>
                                <input type="text" class="form-control" name="titolo" id="titolo" placeholder="Enter titolo" value="<?php echo $agenda->titolo; ?>">
                            </div>

                            <div class="form-group">
                                <label for="descrizione">Descrizione</label>
                                <textarea name="descrizione" rows="10" cols="80" class="form-control ckeditor" id="commenti"><?php echo $agenda->descrizione; ?></textarea>
                            </div>

                            <div class="form-group">
                                <label for="data">Data</label>
                                <input class="form-control datepickers" type="text" name="data" id="data" value="<?php echo Carbon::createFromFormat('Y-m-d', $agenda->data)->format('d/m/Y'); ?>"/>
                            </div>

                            <div class="form-group">
                                <label for="documenti">Documenti</label>
                                <select name="documenti[]" class="form-control" multiple="multiple" id="documenti">
                                    <?php foreach(Documenti::all() as $documento): ?>
                                    <?php $state=false; ?>
                                        <?php foreach($allegati as $allegato): ?>
                                            <?php if($allegato->iddocumenti==$documento->iddocumenti): ?>
                                                <option selected value="<?php echo $documento->iddocumenti; ?>"><?php echo $documento->titolo; ?></option>
                                                <?php $state=true; ?>
                                            <?php endif; ?>
                                        <?php endforeach; ?>  
                                        <?php if(!$state): ?>   
                                            <option value="<?php echo $documento->iddocumenti; ?>"><?php echo $documento->titolo; ?></option>  
                                        <?php endif; ?>
                                    <?php endforeach; ?>
                                </select>
                            </div>

                            <div class="form-group">
                                <?php if($agenda->pubblicato): ?>
                                <input checked class="form-control" type="checkbox" name="pubblicato" id="pubblicato" value="<?php echo $agenda->pubblicato; ?>"/>
                                <?php else: ?>
                                <input class="form-control" type="checkbox" name="pubblicato" id="pubblicato" value="<?php echo $agenda->pubblicato?'true':'false'; ?>"/>
                                <?php endif; ?>
                                <label for="pubblicato">Pubblicato</label>
                            </div>

                            <div class="form-group">
                                <?php if($agenda->flagnew): ?>
                                <input checked class="form-control" type="checkbox" name="flagnew" id="flagnew" value="<?php echo $agenda->flagnew?'true':'false'; ?>"/>
                                <?php else: ?>
                                <input class="form-control" type="checkbox" name="flagnew" id="flagnew" value="<?php echo $agenda->flagnew?'true':'false'; ?>"/>
                                <?php endif; ?>
                                <label for="flagnew">New</label>
                            </div>

                            <button type="submit" class="btn btn-flat btn-success">Salva</button>

                            </div>
                            <?php echo Form::close(); ?>


                        </div>

                    </div>

                </div>
                <!-- /.tab-content -->
            </div>
            <!-- nav-tabs-custom -->
        </div>
        <!-- /.col -->
    </div>
    </section><!-- /.content -->

</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>

    <?php echo HTML::script('js/plugins/ckeditor/ckeditor.js'); ?>

    <?php echo HTML::script('js/plugins/datepicker/bootstrap-datepicker.js'); ?>

    <?php echo HTML::script('js/moment.min.js'); ?>


    <script type="text/javascript">
        $(function() {
            $(".datepickers").datepicker({ format: 'dd/mm/yyyy' });
        });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Commits for Nextrek/Aiba_backup/app/storage/_views/b5ef5c539a47884bd5d5baf3ec03d43b

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000