html – Aligning stepper divs inside a container using bootstrap

I have a list of header icons in a Stepper inside a container and I am trying to get them to be responsive to the page size changes but it is not working. I have tried to change the place of the container in different div but it did not work.

Here is the current output:
enter image description here

I am trying to get the numbers inside the container
here is the template:

    <div class="container flex-grow-1 flex-shrink-0 py-5">
      <div class="mb-5 p-4 bg-white shadow-sm">
        <h1 class="text-center">Plan</h1>
        <div id="stepper1" class="bs-stepper">
          <div class="bs-stepper-header" role="tablist">
            <!-- General Information -->
            <div class="step active" data-target="#test-l-1">
              <button
                type="button"
                class="step-trigger"
                role="tab"
                id="stepper1trigger1"
                aria-controls="test-l-1"
                aria-selected="true"
              >
                <span class="bs-stepper-circle">1</span>
<!--                <span class="bs-stepper-label">General Information</span>-->
              </button>
            </div>
            <!-- Summary -->
            <div class="step" data-target="#test-l-2">
              <button
                type="button"
                class="step-trigger"
                role="tab"
                id="stepper1trigger2"
                aria-controls="test-l-2"
                aria-selected="false"
                
              >
                <span class="bs-stepper-circle">2</span>
<!--                <span class="bs-stepper-label">Summary</span>-->
              </button>
            </div>
        </div>
      </div>
    </div>

7 – Botton webform change bootstrap class


Your privacy


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.




html – Retrieve in function all counter values from a Bootstrap table

html – Retrieve in function all counter values from a Bootstrap table – Stack Overflow

Django CreateView – Method Not Allowed ao tentar cadastrar carregando form com Bootstrap Modal

Ao tentar submeter um formulário para inserir no banco de dados estou recebendo, no console do navegador, a mensagem de erro Failed to load resource: the server responded with a status of 405 () quando carrego meu template em um Modal Bootstrap na minha ListView.

Quando eu abro o mesmo template “normalmente”, ou seja, sem ser em um Modal, a inserção acontece sem nenhum problema.

Segue, abaixo, os códigos envolvidos no problema.

**view.py**
class UsoVeiculoCreate(CreateView):
    model = UsoVeiculo
    form_class = UsoViaturaForm
    template_name = 'frotaapp/uso-veiculo.html'

    def get(self, request, *args, **kwargs):
        form = self.form_class(initial = self.initial)
        return render(request, self.template_name, {'form':form})

    def post(self, request, *args, **kwargs):
        form = self.form_class(request.POST)

        if form.is_valid():
            model = form.save(commit=False)
            model.condutor_uso = Condutor.objects.get(servidor_condutor=request.user)
            model.save()
            return HttpResponseRedirect(reverse('viatura:uso-veiculo-listar'))            
        else:
            return render(request, self.template_name, {'form':form})

class UsoVeiculoListar(ListView):
    model = UsoVeiculo
    template_name = 'frotaapp/listar-uso-veiculo.html'

    def get_queryset(self):
        return UsoVeiculo.objects.all().order_by("-data_saida_uso")

Código abaixo é do template para inserção do Modelo

{% extends 'base.html' %}

{% load crispy_forms_tags %}

{% block rel-adicionais %}
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css">
{% endblock %}

{% block content %}
  <div class='container'>
      <h3><b><p>Cadastrar Uso de Veículo</b></p></h3>
      {% crispy form %}
  </div>
{% endblock %}

{% block extra-script %}
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#id_data_saida_uso').datetimepicker({
                format: 'DD/MM/YYYY HH:mm',
            }).attr("autocomplete", "on");
        });
    </script>

{% endblock %}

Agora o template da minha ListView, onde está o Modal que deve carregar o template acima

{% extends 'base.html' %}

{% load crispy_forms_tags %}

{% block title %}
    <title>Uso dos Veículos</title>
{% endblock %}

{% block rel-adicionais %}
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.25/datatables.min.css"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css">
{% endblock %}

{% block content %}
    <h3><b><p class='container'>Usos dos Veículos</b></p></h3>

    <div class='container'>
        <hr/>
        <p class="text-right">

            <a class='open-novo'
                href="{% url 'viatura:uso-veiculo-novo' %}"
                data-popup-url="{% url 'viatura:uso-veiculo-novo' %}"
                title='Registrar Novo Uso'
                >Novo
            </a>

        </p>
        <table id='notificacoes_controle_urbano' class='table table-bordered table-hover'>
            <thead>
                <tr>
                    <th>Data Saída</th>
                    <th>Data Retorno</th>
                    <th>Viatura</th>
                    <th>Condutor</th>
                    <th>KM Início</th>
                    <th>KM Final</th>
                    <th>Ações</th>
                </tr>
            </thead>
            <tbody>
                {% for model in object_list %}
                <tr>
                    <td>{{ model.data_saida_uso }}</td>
                    <td>{{ model.data_retorno_uso }}</td>
                    <td>{{ model.veiculo_uso }}</td>
                    <td>{{ model.condutor_uso }}</td>
                    <td>{{ model.km_inicio_uso }}</td>
                    <td>{{ model.km_fim_uso }}</td>
                    <td>
                        <a href="{% url 'viatura:encerrar-uso' model.pk %}">
                            <button class="btn btn-danger btn-sm" title='Encerrar Uso'>E</button>
                        </a>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>


    <!-- The Modal -->
    <div id="popup" class="modal fade" role="dialog">
      <div class="modal-dialog modal-lg">
        <div class="modal-content">
          <div class="modal-body"></div>
          <div class="modal-footer">
            <button type="button" class="btn btn-info" data-dismiss="modal">Close
            </button>
          </div>
        </div>
      </div>
    </div>
{% endblock %}


{% block extra-script %}
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.25/datatables.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#notificacoes_controle_urbano').DataTable({
                responsive: true,
                "aaSorting": (),
                "pageLength": 50,                
            });
        });

        $(document).on('click', '.open-novo', function(e) {
           e.preventDefault();
           var $popup = $("#popup");
           var popup_url = $(this).data('popup-url');
           $(".modal-body", $popup).load(popup_url, function() {
               $popup.modal("show");
           });
        });
    </script>
{% endblock %}

Desde já agradeço a atenção.

Is there a way to shortcode Advanced Bootstrap Carousel plugin into Forminator?

Apprentice IT technician here so bare with me please – I’m looking to add a shortcode from Advanced Bootstrap Carousel Plugin into a form I’ve made on Forminator. I’ve seen people have used shortcodes in Forminator for other uses, but wondered if this was possible to do with this plug in?

Thanks in advance for your patience!

boost – arquivos criados automaticamente bootstrap

eu tava mexendo no meu projeto, ai reparei que tinha um arquivo scss incomodando e muito, com suas propriedades, e 3 pastas que eu não tinha criado, Dentro delas estavam alguns arquivos do bootstrap bom provavelmente os js do framekork cria eles automaticamente eu queria saber se pode remover essa criação de pastas do projeto pois eu tenho já o css dele e se tirar pode dar problemas futuros…

inserir a descrição da imagem aqui

php – Bootstrap 4 Carosuel with ACF Repeater field

php – Bootstrap 4 Carosuel with ACF Repeater field – WordPress Development Stack Exchange

php – Enviar ID, hacer una consulta y reflejar datos en modal bootstrap

Estoy diseñando un dashboard y creé una tabla donde trae datos de diferentes personas. Estoy tratando de hacer que la tabla se lleve el “NUMDOC” de cada persona a través de un botón, para que con ese “NUMDOC” traiga datos de otra tabla.
El problema, es que a la hora de hacer clic en el botón, únicamente me aparece el “backdrop” del modal de Bootstrap.

Imagen a modo de ilustración. El ojo representaría el botón que está puesto actualmente en el código.
Imagen a modo de ilustración. El ojo representaría el botón que está puesto actualmente en el código. La idea es que se entienda un poco mejor cómo aparece en la tabla. Reflejará solo 5 resultados ya que tiene un LIMIT en la consulta $sql.

Primeramente, voy a compartir el código de mi tabla con su consulta php:

Consulta PHP

<?php   
        require_once 'controllers/connection.php';
        error_reporting(E_ALL);
              
          define("ROW_PER_PAGE",2);

            $search_keyword = '';
              if(!empty($_POST('search')('keyword'))) {
                $search_keyword = $_POST('search')('keyword');
              }
            $sql = 'SELECT * FROM padronint WHERE nombre LIKE :keyword OR numdoc LIKE :keyword OR domicilio LIKE :keyword OR telefono LIKE :keyword LIMIT 5;';
        
            /* Pagination Code starts */
            $per_page_html = '';
            $page = 1;
            $start=0;
              if(!empty($_POST("page"))) {
                $page = $_POST("page");
                $start=($page-1) * ROW_PER_PAGE;
              }
            $limit=" limit " . $start . "," . ROW_PER_PAGE;
            $pagination_statement = $connect->prepare($sql);
            $pagination_statement->bindValue(':keyword', '%' . $search_keyword . '%', PDO::PARAM_STR);
            $pagination_statement->execute();
        
            $row_count = $pagination_statement->rowCount();
              if(!empty($row_count)){
                $per_page_html .= "<div style='text-align:center;margin:20px 0px;'>";
                $page_count=ceil($row_count/ROW_PER_PAGE);
                if($page_count>1) {
                    for($i=1;$i<=$page_count;$i++){
                        if($i==$page){ //<li class="page-item active"><a href="#" class="page-link">1</a></li>
                            $per_page_html .= '<li class="page-item"><input type="submit" name="page" value="' . $i . '" class="page-link" /></li>';
                        } else {
                            $per_page_html .= '<li class="page-item"><input type="submit" name="page" value="' . $i . '" class="page-link" /></li>';
                        }
                    }
                }
                $per_page_html .= "</div>";
              }
        
            $query = $sql.$limit;
            $pdo_statement = $connect->prepare($query);
            $pdo_statement->bindValue(':keyword', '%' . $search_keyword . '%', PDO::PARAM_STR);
            $pdo_statement->execute();
            $result = $pdo_statement->fetchAll(PDO::FETCH_ASSOC);
      ?>

Tabla HTML QUE MUESTRA LOS RESULTADOS DE DICHA CONSULTA

      <form name="frmSearch" class="" action="" method="post">
    <div class="table-responsive">
        <div class="table-wrapper">
            <div class="table-title">
                <div class="row">
                    <div class="col-sm-8"><h2>Tabla <b>Internados</b></h2></div>
                    <div class="col-sm-4">
                        <div class="search-box">
                            <input type="text" name="search(keyword)" class="form-control" placeholder="Buscar&hellip;" value="<?php echo $search_keyword; ?>" id='keyword' maxlength='25'>
                        </div>
                    </div>
                </div>
            </div>
            <!-- GUARDADO DE DATOS -->

            <table class="table table-striped table-hover table-bordered">
                <thead>
                    <tr>
                        <th>Nombre</th>
                        <th>DNI<i class="fa fa-sort"></i></th>
                        <th>Domicilio</th>
                        <th>Telefono</th>
                        <th>Acciones</th>
                    </tr>
                </thead>
                <tbody>
                  <?php if (empty($result) === false): ?>
                    <?php foreach($result as $row): ?>
                      <tr>
                        <td><?= htmlspecialchars($row('nombre')) ?></td>
                        <td><?= htmlspecialchars($row('numdoc')) ?></td>
                        <td><?= htmlspecialchars($row('domicilio')) ?></td>
                        <td><?= htmlspecialchars($row('telefono')) ?></td>
                        <td><?= '<button data-bs-toggle="modal" data-bs-target="#getuser" data-id="<?php echo $row("numdoc")?>" id="getUser" class="btn btn-sm btn-info">Ver</button>'; ?>
                        <i class="fa-solid fa-eye">
                          <!--<a href="#" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">&#xE254;</i></a>
                          <a href="#" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">&#xE872;</i></a>-->
                        </td>
                      </tr>
                    <?php endforeach; ?>
                  <?php endif; ?>
                </tbody>
            </table>
            <script>
                        $('#getuser').on('show.bs.modal', function (event) {
                          var button = $(event.relatedTarget) // Button that triggered the modal
                          var recipient = button.data('whatever') // Extract info from data-* attributes
                          var modal = $(this);
                          var dataString = 'id=' + recipient;

                          $.ajax({
                            type: "GET",
                            url: "controllers/modalc.php",
                            data: dataString,
                            cache: false,
                            success: function (data) {
                                console.log(data);
                                modal.find('.dash').html(data);
                            },
                            error: function(err) {
                                console.log(err);
                           }
                       });
                       })              
            </script>
            <div class="clearfix">
                <!-- <div class="hint-text">Showing <b>5</b> out of <b>25</b> entries</div> -->
                <ul class="pagination">
                    <li class="page-item"><a href="#" class="page-link"><i class="fa-solid fa-left-from-line"></i></a></li>
                    <?php echo $per_page_html; ?>
                    <!--
                    <li class="page-item active"><a href="#" class="page-link">1</a></li>
                    <li class="page-item"><a href="#" class="page-link">2</a></li>
                    <li class="page-item"><a href="#" class="page-link">3</a></li>
                    <li class="page-item"><a href="#" class="page-link">4</a></li>
                    <li class="page-item"><a href="#" class="page-link">5</a></li>-->
                    <li class="page-item"><a href="#" class="page-link"><i class="fa-solid fa-right-from-line"></i></a></li>
                </ul>
            </div>
        </div>
    </div> 
  </form>

SCRIPT QUE ALMACENA EL “NUMDOC” DE CADA PERSONA QUE APARECE EN LA TABLA

                <script>
                        $('#getuser').on('show.bs.modal', function (event) {
                          var button = $(event.relatedTarget) // Button that triggered the modal
                          var recipient = button.data('whatever') // Extract info from data-* attributes
                          var modal = $(this);
                          var dataString = 'id=' + recipient;

                          $.ajax({
                            type: "GET",
                            url: "controllers/modalc.php",
                            data: dataString,
                            cache: false,
                            success: function (data) {
                                console.log(data);
                                modal.find('.dash').html(data);
                            },
                            error: function(err) {
                                console.log(err);
                           }
                       });
                       })              
            </script>

Como se ve en el script, técnicamente solicita un archivo dentro de la carpeta “controllers”, llamado “modalc.php”. Este archivo es usar el ID que guarda el AJAX y simplemente hacer la consulta para que distribuya los datos en el modal, comparto el código a continuación:

CÓDIGO PHP DEL ARCHIVO MODALC.PHP

    <?php 

include('connection.php');

if(isset($_GET("numdoc")))
{
 $query = "SELECT * FROM internacion, padronint WHERE historia = '".$_GET("numdoc")."'";

 $statement = $connect->prepare($query);
 $statement->execute();
 $result = $statement->fetchAll();
 $output = '<div class="row">';
 foreach($result as $row)
 {
  $output .= '
  <div class="col-md-9">
   <br />
   <p><label>Nombre :&nbsp;</label>'.$row("nombre").'</p>
   <p><label>Nro Int. :&nbsp;</label>'.$row("nro_internacion").'</p>
   <p><label>Telcod :&nbsp;</label>'.$row("telcod").'</p>
   <p><label>Nomgar :&nbsp;</label>'.$row("nomgar").'</p>
   <p><label>Usuario :&nbsp;</label>'.$row("usuario").' years</p>
  </div>
  </div><br />
  ';
 }
 echo $output;
}

?>

CÓDIGO DEL MODAL UTILIZADO EN ESTE SISTEMA (BOOTSTRAP)

<!-- Modal -->
<div class="modal fade" id="getuser" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="staticBackdropLabel">Modal title</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Understood</button>
      </div>
    </div>
  </div>
</div>

En este sistema estoy utilizando: Bootstrap, jQuery, Ajax, MySQL, PHP (PDO).

html – responsive video overflowing a bootstrap accordion body

Hey I’m making a website and I have been able to solve most problems I encountered using stackoverflow and googling except this one.. I have a responsive video in bootstrap accordion body, but as you can see in below image, the video overflows its container. How can I solve this problem?

image

Bootstrap botton hover – Stack Overflow em Português

Bootstrap botton hover – Stack Overflow em Português

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Buy Cheap Private Proxies; Best Quality USA Private Proxies