ahmed salah

ahmed salah

  • 931
  • 547
  • 64.4k

how to make all block of code on one row bootstrap or CSS ?

Feb 4 2024 9:42 PM

I work on asp.net mvc I face issue on design I can't display all this block of code on one row bootstrab so 

How to display all block of code on view as asp.net mvc 

Issue on code below it displaybon two rows bootsrtab and i need to display it as one row 

desired is to display all block start from if until end to one row col-md-9 and col-md-3 or as you see 

    @if ((Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "LDM") ||
 (Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "LM") ||
 (Session[BLL.Common.SessionKeys.WhichApprove].ToString() == "3" && Session[BLL.Common.SessionKeys.RoleCode].ToString() == "DM") ||
 (Session[BLL.Common.SessionKeys.RoleCode].ToString() == "REQ"))
    {


        if (Model.DirectManagerStatus != "Cancelled")
        {
            if (Model.RevokeRequest == "")
            {
                <a id="RevokeRequestId" onclick="RevokeRequest();" class="btn btn-danger" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                    <i class="glyphicon glyphicon-remove"></i>
                    Cancel
                </a>
            }

            if (Model.RevokeRequest == "1" && Model.WhoRevokeRequest != "1")
            {
                <a id="RefuseRevokeRequestId" onclick="RefuseRevokeRequest();" class="btn btn-primary" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                    <i class="glyphicon glyphicon-ok"></i>
                    Refuse
                </a>
                <a id="AcceptRevokeRequestId" onclick="AcceptRevokeRequest();" class="btn btn-primary" style="min-width: 100px; margin-top: 5px; margin-left: 5px;">
                    <i class="glyphicon glyphicon-ok"></i>
                    Accept Cancel
                </a>
            }
        }


        if (ViewBag.AllowEnabledRequest == false && Model.LineManagerStatus == "Approve" && Model.ReturnProcess == "1")
        {

          
            <div class="row" style="margin-top:5px;">
                <div class="col-md-9">
                    @if (ViewBag.AllowEnabledRequest == false)
                    {
                        <label style="font-size:16px;font-weight:bold;color:red">Last working date is revised by manager. Please provide your acceptance</label>
                    }
                </div>
                <div class="col-md-3">
                    <a id="btnApprove" onclick="ConfirmationAcceptLastWorkingDate();" class="btn btn-primary" style="min-width: 150px; margin-left: 10px; height: 30px;"><i class="glyphicon glyphicon-ok"></i> Accept </a>
                    <a id="btnrejectChanges" onclick="ConfirmationRejectChanges();" class="btn btn-danger" style="min-width: 150px; margin-left: 10px; height: 30px;margin-left:5px;"><i class="glyphicon glyphicon-remove"></i> Reject </a>
                </div>

            </div>
          
        }
        if (ViewBag.AllowEnabledRequest == false && Model.DirectManagerStatus == "Approve" && Model.ReturnProcess == "2")
        {

            <div class="row" style="margin-top:5px;">
                <div class="col-md-9">
                    <label style="font-size:16px;font-weight:bold;color:red">Last working date is revised by manager. Please provide your acceptance</label>
                </div>
                <div class="col-md-3">
                    <a id="btnApprove" onclick="ConfirmationAcceptLastWorkingDate();" class="btn btn-primary" style="min-width: 150px; margin-left: 10px; height: 30px;"><i class="glyphicon glyphicon-ok"></i> Accept </a>
                    <a id="btnrejectChanges" onclick="ConfirmationRejectChanges();" class="btn btn-danger" style="min-width: 150px; margin-left: 10px; height: 30px;margin-left:5px;"><i class="glyphicon glyphicon-remove"></i> Reject </a>
                </div>

            </div>

        }

    }

 


Answers (1)