campo de update

mail@pastecode.io avatar
unknown
html
2 years ago
6.7 kB
3
Indexable
Never
<div class="col-sm-9 form-group" ng-controller="UploadController"  nv-file-drop="" uploader="uploader" filters="queueLimit, customFilter">

                        <label class="required">Selecione o(s) arquivo(s) para upload</label><i style="color: grey;"> (Tamanho total permitido: aproximadamente 10MB (1 ou mais arquivos) e somente arquivos no formato .pdf)</i>
                        <div class="clearfix"></div>
                        <input type="file"  id="input-select-file" style="display:none;" nv-file-select=""  uploader="uploader" multiple  />
                        <button
                                onclick="document.getElementById('input-select-file').click();"
                                class="btn btn-success btn-s"
                                ng-disabled="vm.bloqueiaAcaoArquivos"
                                >
                            <span class="glyphicon glyphicon-file"></span>Escollher arquivos..
                        </button>

                        <div class="clearfix"></div>

                        <label>Tamanho da fila de upload: {{ uploader.queue.length}} </label>
                        <div class="clearfix"></div>
                        <label>Total em MB adicionado: <span style="color: highlight;">{{tamanhoTotal|number:2}} MB</span>, você pode adicionar: <span style="color: highlight;">{{10000 / 1024 + 0.23 - tamanhoTotal|number:2}} MB</span> </label>

                        <table class="table">
                            <thead>
                            <tr>
                                <th width="50%">Nome</th>
                                <th ng-show="uploader.isHTML5">Tamanho</th>
                                <th ng-show="uploader.isHTML5">Progresso</th>
                                <th>Status</th>
                                <th>Ações</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="item in uploader.queue">
                                <td><strong>{{ item.file.name}}</strong></td>
                                <td ng-show="uploader.isHTML5" nowrap>{{ item.file.size / 1024 / 1024|number:2 }} MB</td>
                                <td ng-show="uploader.isHTML5">
                                    <div class="progress" style="margin-bottom: 0;">
                                        <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                                    </div>
                                </td>
                                <td class="text-center">
                                    <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                                    <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                                    <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
                                </td>
                                <td nowrap>
                                    <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove(); atualizaTamanhoTotalUpload(item.file)" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                                        <span class="glyphicon glyphicon-trash"></span> Remover
                                    </button>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <div>
                            <div>
                                Progresso da fila:
                                <div class="progress" style="">
                                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
                                </div>
                            </div>

                            <div class="clearfix"></div>
                            <div class="divider-dashed"></div>

                            <div class="col-sm-12 form-group" >
								<label ng-show="vm.model.statusLancamento.id != 4">
	                                <button type="button" class="btn btn-primary" ng-show="!vm.model.id "
	                                        ng-click="salvarDocumento();"
	                                        ng-disabled="!uploader.getNotUploadedItems().length && !vm.model.contador">
	                                    <span class="glyphicon glyphicon-save"></span> Incluir
	                                </button>
	                               <button type="button" class="btn btn-primary" ng-show="vm.model.id && !vm.bloqueiaBotoesAcao"
	                                        ng-click="atualizarDocumento(vm.model.id, vm.model)">
	                                    <span class="glyphicon glyphicon-save"></span> Salvar
	                                </button>
	
<!-- 	                                <button type="button" class="btn btn-primary" ng-show="vm.model.id && !vm.bloqueiaBotoesAcao "
	                                        ng-click="atualizarDocumento(vm.model.id, vm.model)"
	                                        ng-disabled="!uploader.getNotUploadedItems().length && !vm.model.contador">
	                                    <span class="glyphicon glyphicon-save"></span> Salvar
	                                </button> -->
	                                <button type="button" class="btn btn-success"
	                                        ng-click="post('enviar/' +vm.model.id, returnParams())"
	                                        ng-show="vm.model.id != null && (vm.model.statusLancamento.id === 1 || vm.model.statusLancamento.id === 2 )">
	                                    <span class="glyphicon glyphicon-send"></span> Enviar
	                                </button>
	                            </label>
								
<!--                                 <button type="button" class="btn btn-dark" ng-click="get('search')">
                                    <span class="glyphicon glyphicon-list"></span> Listagem -->
                                <button type="button" class="btn btn-dark" ng-click="listingOrSearch()">
                                    <span class="glyphicon glyphicon-list"></span> Listagem
                                </button>
                                    
                            </div>

                        </div>

                    </div>